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 (10402,31354,45567,44531,44866,17492,44858,3883,37267,17755,45180,44851,5388,5993,44671,45518,19057,18353,17835,44869,18794,44853,4686,45277,44711,45043,44775,32454,30986,6875,28313,17335,4765,45517,17351,44739,45346,17756,17904,5259,44640,30963,44836,44685,13,44845,44766,18981,24441,17237,18688,37057,44856,44865,44867,44765,45262,44873,44767,17092,44894,45072,17114,18301,18572,18237,17278,18894,13425,18279)
Unknown column 'np.person' in 'where clause'