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 (18650,44866,45515,8753,17703,45346,44837,6782,44867,17848,45229,18981,17771,17527,30986,14622,5410,18185,44861,24441,44768,24438,17981,17756,44869,45042,19078,5993,44851,22509,18172,16935,44865,5259,16885,30135,4686,44674,44849,44868,18427,18430,44853,45567,45518,3883,44739,37267,18446,44870,17092,17835,18794,44848,19057,18301,45517,45277,44764,45421,13,44775,17492,44669,18648,17237,17556,44687,17278,39676)
Unknown column 'np.person' in 'where clause'