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 (9341,14622,18981,44853,45043,24412,18794,18042,44671,44640,4686,17835,17351,16935,44739,18301,44764,17556,5410,37267,3883,44863,34194,28313,13,45515,19078,17492,44531,44849,5993,44873,17009,44766,39676,44767,44765,44865,28530,44856,45072,44878,5388,13988,44884,30986,45518,17278,44868,44870,37057,45051,44768,17092,31354,17904,18279,45517,18652,18353,45262,45042,44861,18427,44869,44669,6862,30963,17756,14402)
Unknown column 'np.person' in 'where clause'