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