AAA
string(663) "select a.*, c.name AS category_name,c.id AS category_id,c.blurb AS category_blurb,c.order_id AS category_order_id, IF(a.subcategory>0,a.subcategory,-1) AS subcategory_id,s.name AS subcategory_name,s.blurb AS subcategory_blurb,IF(a.subcategory>0,s.order_id,-1) AS subcategory_order_id,s.url_name AS subcategory_url_name, au.author as author_name,au.id as author_id FROM articles AS a LEFT JOIN categories AS c ON a.category=c.id LEFT JOIN subcategories AS s ON a.subcategory=s.id LEFT JOIN authors AS au ON a.author=au.id WHERE a.id=39 and a.approved='1'"
END