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 (44878,13988,6875,18172,17835,44884,44765,17848,43800,44764,18427,39676,44869,45051,14622,45072,44853,45286,18981,4765,17904,44858,44849,17527,45042,44865,19078,28530,44845,18237,44689,44873,34194,45262,17755,17351,24438,3,45421,44870,17237,18900,18042,45346,44671,45518,45515,44867,19057,18185,18794,17009,17278,45177,17981,17092,17492,44767,18572,44640,14402,45567,18286,18996,44531,44851,37057,44861,16935,45180)
Unknown column 'np.person' in 'where clause'