select * from complaintssubcategories c left join complaintscategories__complaintssubcategories cc on c.complaintssubcategoriesID=cc.complaintssubcategoriesID left join complaintscategories cat on cc.complaintscategoriesID=cat.complaintscategoriesID where (cc.complaintscategoriesID=) and (complaintssubcategories_hide is NULL or complaintssubcategories_hide = '') and (complaintssubcategories_totalhide is NULL or complaintssubcategories_totalhide = '') AND c.retired IS NULL order by c.complaintssubcategories_title
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 (complaintssubcategories_hide is NULL or complaintssubcategories_hide = '' at line 1
SELECT * FROM complaintscategories__links WHERE complaintscategoriesID = ''
Table 'mygov_admin.complaintscategories__links' doesn't exist
select * from settings where settings_label='citizens'
Unknown column 'settings_label' in 'where clause'
SELECT complaintscategories_title FROM complaintscategories AS cc WHERE cc.complaintscategoriesID =
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 '' at line 1