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 (44640,45229,18981,44689,18301,18446,44869,3883,24411,4765,44873,24441,18042,44865,44669,44870,17335,43800,45043,17601,45421,17237,18719,45515,3,5388,17092,17009,19057,17657,17981,44851,44531,44765,14622,18900,45262,18185,5259,13425,28530,44685,32454,44687,44836,44861,45051,18794,45517,18652,17351,45042,44866,44894,31354,44878,6609,44766,17755,44854,45518,44767,17527,17835,30963,37267,34194,17904,45346,19078)
Unknown column 'np.person' in 'where clause'