System Error
SELECT bsp_business.creation_date, bsp_business.last_reviewed_date, bsp_business.business_name, bsp_business.businessID, bsp_business.business_type, bsp_business.profile, bsp_business.areaID, bsp_business.boroughID, bsp_business.review, bsp_business.description, bsp_business.tour_description, bsp_business.image201, bsp_business.image101, bsp_business.latitude, bsp_business.longitude, bsp_business.address1, bsp_business.address2, bsp_business.phone1, bsp_business.web_address, bsp_business.is_address_hidden, bsp_business.visit FROM bsp_business JOIN bsp_business_categories as bc ON bc.businessID = bsp_business.businessID WHERE status = 'A' AND (() OR (bsp_business.boroughID = '1')) AND (( bc.categoryID = '0' OR business_type = '0')) GROUP BY bsp_business.businessID ORDER BY IF(bsp_business.review<>'',0,1), last_updated_date DESC
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 ') OR (bsp_business.boroughID = '1')) AND (( bc.categoryID = '0' OR business_type' at line 24
include_once called from modules.php:32
sql_query called from user.php:264