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 (18353,44685,17771,18652,44866,5259,14622,44762,17237,45516,37057,37267,9341,44671,18572,45051,45043,44870,4686,44851,44868,44858,44894,44849,3,6875,44766,45180,45229,45561,44669,31354,17009,17904,24438,45286,17601,8753,19078,45072,44765,44531,44867,44865,18794,44689,36472,17657,44861,5388,6862,18237,45042,18172,17703,44845,17755,44856,44878,18648,39676,24411,17981,18688,32454,18719,44863,44711,44837,45517)
Unknown column 'np.person' in 'where clause'