MySQL error!
Database: Resource id #3
The query: SELECT a.ad_status,a.ad_user_id,a.ad_category,a.ad_date_begin,a.ad_date_end,a.ad_type,a.ad_title,a.ad_description,a.ad_image1,a.ad_image2,a.ad_image3,a.ad_image4,a.ad_image5,a.ad_options,a.ad_optional_1,a.ad_optional_2,a.ad_optional_3,a.ad_optional_4,a.ad_optional_5,a.ad_price,a.ad_condition,a.ad_views,c.category_optional_1,c.category_optional_2,c.category_optional_3,c.category_optional_4,c.category_optional_5,u.user_name FROM bclass_ads a LEFT JOIN bclass_categories c ON a.ad_category=c.category_id LEFT JOIN bclass_users u ON a.ad_user_id=u.user_id WHERE ad_id=
The result: 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