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 (34194,30135,44851,17556,44855,18572,44671,18719,14622,44865,45042,17335,44836,36472,44868,44867,44766,3,45561,17527,44869,45517,17848,10402,6875,44854,44640,45051,44875,13,19078,44856,18652,17237,44531,45277,32454,45262,44853,44849,18279,44848,18301,5259,45072,44775,44878,37267,8753,5410,17981,22509,18996,18172,44711,17492,13425,45515,18688,44866,17703,6609,16935,3883,18185,45567,17756,24438,24411,5993)
Unknown column 'np.person' in 'where clause'