Problem: Error while preparing query
SELECT p.phrase, (SELECT t.translation FROM msk_translations AS t WHERE t.locale_id = 1 AND t.mainswitch = 1 AND t.phrase_id = p.ID) AS english_translation, (SELECT t.translation FROM msk_translations AS t WHERE t.locale_id = AND t.mainswitch = 1 AND t.phrase_id = p.ID) AS translation FROM msk_trans_phrases AS p WHERE p.mainswitch = ?
Type of error: 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 t.mainswitch = 1 AND t.phrase_id = p.ID) AS translation FROM msk_trans_phra' at line 3