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 (44867,44836,45043,18719,18237,18794,45051,19078,6875,5993,44762,44766,37057,18185,32454,44669,13,44865,19057,24412,17114,44856,44767,18688,5388,18446,4686,44640,44851,17278,36472,45516,8753,45286,44739,44768,17755,18652,17092,18430,44854,17981,30963,44863,18172,44745,17657,45517,18301,44765,17703,22509,17237,45561,18572,44685,17527,44689,18981,43800,44835,44671,45346,44869,37267,18996,17835,14402,45262,10402)
Unknown column 'np.person' in 'where clause'