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 (44869,44849,44884,24438,44835,17771,44762,44671,18572,44867,44878,45229,44689,17114,18652,45561,44765,44856,13988,18688,18237,45517,45346,13425,37267,18648,28530,22509,45042,45277,18981,44669,44837,18894,18042,44861,17981,44854,17556,44866,44766,18900,10402,43800,17335,5410,17756,44865,18794,17237,18650,44851,24411,44768,30986,44863,6609,44868,44870,44674,44764,4686,17601,18430,17657,45518,45262,3,44853,13)
Unknown column 'np.person' in 'where clause'