SELECT * FROM mhx_slug AS t1 JOIN mhx_component AS t2 ON t1.id_component = t2.id_component WHERE slug = 'assets/js/' self.imageSrc '' OR slugen = 'assets/js/' self.imageSrc '' | You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'self.imageSrc '' OR slugen = 'assets/js/' self.imageSrc ''' at line 1