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 (18286,44863,3883,17278,44878,17981,28530,45515,18042,44867,43800,17904,16885,45262,44837,17237,44835,44851,44674,44671,44711,45567,39676,44894,45177,45421,17092,14402,13,44868,44849,45051,17492,44845,18648,30986,17556,44767,45180,17848,17756,44685,6862,44854,30135,44765,44884,44866,4765,44856,44865,5259,18301,44687,13922,17835,17771,44870,34194,14622,45042,4686,44768,44873,44739,18719,17755,17703,18430,17657)
Unknown column 'np.person' in 'where clause'