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 (17981,44868,44878,17848,17009,45262,44854,44768,16885,45515,18286,45518,44870,10402,3883,44764,18688,13425,18427,17237,4686,3,44765,17703,24441,44849,18996,17755,24438,32454,17092,44845,44869,44866,44739,18572,17904,37267,14622,44837,18279,44531,44775,18981,44640,44884,18237,18353,30963,34194,6609,24411,44685,18648,44856,44766,45286,18430,6875,44861,16935,44863,44762,28313,18446,4765,19078,45567,18794,9341)
Unknown column 'np.person' in 'where clause'