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 (18900,44849,18996,45286,17278,13,44685,18981,17009,17835,44875,17527,16885,18172,44836,18572,44640,17904,44775,44856,45567,45518,45515,44866,37057,24412,30963,18430,19057,45421,44669,30986,44689,5259,45277,22509,44867,18688,17756,45051,18652,14622,18185,4686,45262,44739,44765,44884,24441,4765,31354,6782,44861,44764,18353,44768,17237,34194,39676,5410,6609,18648,44531,17981,45516,5388,44766,18650,10402,18427)
Unknown column 'np.person' in 'where clause'