$queText - select pd.pages_name, pd.pages_description, p.pages_image, p.pages_image_ancho from pages_description pd left join pages p on pd.pages_id = p.pages_id where pd.pages_id = and pd.language_id = '' - 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 'and pd.language_id = ''' at line 1