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 (45515,17601,44869,37267,13922,18301,45051,30986,17527,44766,44894,19078,17351,18688,22509,18353,18981,3,44711,44669,13988,44855,44861,32454,45262,17237,44865,17335,4686,45421,44739,5410,17278,6862,44768,17657,44745,17839,6609,18042,44762,9341,44884,18894,18185,17771,45277,44856,17756,18427,18719,16935,18996,18279,14622,28313,44867,44674,44671,17904,24412,44853,44868,6782,24438,45346,14402,44687,5259,6875)
Unknown column 'np.person' in 'where clause'