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 (17601,18286,18981,44869,44865,37267,17904,45516,3,45286,44835,44870,18430,45567,44767,44855,44669,17009,44837,18652,4765,44875,13988,44766,17092,17492,18894,45229,44894,30986,17556,19057,17771,44640,14622,17237,44765,19078,28530,44849,44853,18996,24441,18688,44768,24411,45421,6862,18427,18446,5993,18900,18301,18172,3883,5410,44739,44878,13425,17755,14402,45043,45517,44858,17848,45561,45072,4686,8753,44867)
Unknown column 'np.person' in 'where clause'