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 (31354,45262,18279,6609,45518,44767,44687,44640,4765,17114,44867,16885,45516,44766,44868,16935,18572,18430,17601,24411,36472,44669,44775,18446,6862,8753,17009,18981,5993,5259,44869,45286,44765,17527,44837,44835,18648,44856,44861,45072,17771,17335,18427,44836,45051,17237,44870,17492,44884,44674,37057,44739,45177,45277,17904,3883,18301,44866,17092,44858,19078,6875,9341,28530,30135,18042,18688,24438,14402,17657)
Unknown column 'np.person' in 'where clause'