__BAD QUERY__
SELECT SQL_CALC_FOUND_ROWS SQL_CACHE articles.* , articles_category.value as articles_category FROM articles LEFT JOIN articles_category ON articles.articles_category_id = articles_category.id WHERE `articles`.`id` != 1259 AND discount_categs IN () AND save_status='L' ORDER BY created_time DESC LIMIT 0,3
#0 Sql->error(SELECT SQL_CALC_FOUND_ROWS SQL_CACHE articles.* , articles_category.value as articles_category FROM articles LEFT JOIN articles_category ON articles.articles_category_id = articles_category.id WHERE `articles`.`id` != 1259 AND discount_categs IN () AND save_status='L' ORDER BY created_time DESC LIMIT 0,3, MDB2 Error: syntax error) called at [/home/dev/app/classes/sql.class.php:96] #1 Sql->select(SELECT SQL_CALC_FOUND_ROWS SQL_CACHE articles.* , articles_category.value as articles_category FROM articles LEFT JOIN articles_category ON articles.articles_category_id = articles_category.id WHERE `articles`.`id` != 1259 AND discount_categs IN () AND save_status='L' ORDER BY created_time DESC LIMIT 0,3) called at [/home/dev/app/classes/articles.class.php:154] #2 Articles->related(3) called at [/home/dev/app/modules/articles.php:222] #3 m_articles->view() called at [/home/dev/app/modules/base_module.php:87] #4 m_base_module->sb_proceed() called at [/home/dev/app/lib/switchboard.php:158] #5 switchboard() called at [/home/dev/public_html/index.php:62] Insurance Guide test