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 (17492,44865,45072,17755,18237,14622,17657,18981,17981,43800,3,44853,4765,17527,13988,18996,44689,18572,6782,44855,44868,18279,17092,9341,16885,17278,44851,18650,44869,17904,32454,5259,13425,18430,6875,45518,17009,37057,18353,6862,24438,44870,17703,3883,10402,45177,17556,18794,44764,18301,28530,45346,45561,44856,30963,18427,22509,18688,14402,18172,44835,44766,45043,18652,17848,44687,45180,5410,44873,44867)
Unknown column 'np.person' in 'where clause'