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 (14402,17237,44767,6862,30986,45516,44687,18286,14622,16935,44640,4686,30963,44868,44894,5993,17351,17601,18688,18185,13922,17703,45177,45561,44766,37267,44836,4765,28313,45072,44867,17114,18648,18794,5388,17335,5410,24412,18172,44878,17981,18572,18301,13425,44837,6782,44870,22509,45043,44745,44873,31354,13,6875,44884,17527,18237,18042,18427,9341,30135,45229,44851,18650,45286,24411,17848,24441,44856,44848)
Unknown column 'np.person' in 'where clause'