Solar Panel
Solar Mash

Posted on by
viewed times
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 pi.table_name = "tblCOMPANIES" AND pi.redirect = 0' at line 5SELECT c.name, pi.page_url FROM tblNEWS n LEFT JOIN trelCOMPANIES_NEWS cn ON n.id = cn.tblNEWS_id LEFT JOIN tblCOMPANIES c ON cn.tblCOMPANIES_id = c.id LEFT JOIN tlkpPAGEINDEX pi ON c.id = pi.table_row_id WHERE n.id = and pi.table_name = "tblCOMPANIES" AND pi.redirect = 0;