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 (18279,45177,24412,44865,17527,17601,44640,4686,5410,44711,18719,44765,44870,45262,45421,44851,4765,45043,30986,44685,28313,34194,17755,17009,45229,44775,17492,18427,24438,45072,18648,18446,24411,18688,16885,18981,44878,44873,13922,44836,18572,44687,44766,22509,14402,45180,44689,18652,44867,6609,18185,44861,44768,18996,44894,24441,17114,44745,8753,18042,44863,17237,17556,17756,6782,37267,18353,17657,18301,17848)
Unknown column 'np.person' in 'where clause'