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 (45042,17492,44868,5993,17092,45277,18279,44861,44739,18286,44867,44858,45177,18719,45180,14402,13922,18981,30963,44762,28530,3883,44856,6862,19078,44878,17703,44766,24438,34194,30986,45051,45262,17756,18237,17556,45286,6609,17237,44640,36472,44671,37057,18894,32454,17114,31354,18446,44854,18185,44835,18688,28313,45421,45043,45346,43800,44768,4765,16935,18648,45517,44865,24412,37267,3,19057,18652,18042,18353)
Unknown column 'np.person' in 'where clause'