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 (18430,17848,17756,44865,17114,10402,24441,6609,17237,30135,17657,18446,18572,18650,18353,44869,17009,45277,5388,44768,44766,44674,44856,13988,28530,18427,32454,24412,16935,36472,5993,44851,45518,39676,9341,4686,44745,19057,44849,44531,44762,18894,37267,44689,17335,44671,4765,17527,45177,17092,44873,18185,19078,18652,17904,18981,13425,45517,6782,44848,5259,44867,28313,17981,45561,44767,18688,14402,22509,16885)
Unknown column 'np.person' in 'where clause'