Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (18172,30135,32454,44768,44878,45229,45262,6862,45516,44837,17601,18996,18650,37267,17237,14402,24438,44640,44884,18279,18652,44674,44687,45286,44868,17351,44865,44856,6609,18185,13922,17756,18719,18894,6875,8753,44745,17556,44858,44854,31354,44866,44685,4686,22509,43800,6782,44894,45277,3883,45072,16935,44855,44853,18430,45051,4765,13,44849,18427,17904,44711,34194,19057,45346,44861,44870,17835,19078,3)
Unknown column 'np.person' in 'where clause'