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 (44849,44775,44870,45516,17839,8753,18648,24412,6875,45567,45286,17237,17848,44861,44854,5388,18042,45177,18688,18301,14622,44835,44868,18996,18430,18185,44765,44869,17556,34194,44867,44853,44762,19078,45518,4686,17981,45229,36472,44767,13922,5410,44766,13425,18981,18172,19057,44866,44865,24441,44745,44674,18719,44687,3,18237,17492,13988,30135,37057,18427,31354,44856,37267,18279,24411,17703,5259,44848,44884)
Unknown column 'np.person' in 'where clause'