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 (32454,17848,17601,18900,18894,18353,17237,44848,44854,24438,44531,44866,19057,44875,45518,13425,3883,44669,10402,16885,45043,5993,6862,28313,45072,17556,44861,18794,44849,17703,44867,3,4686,30986,44640,13,44689,18446,18688,44845,45515,44767,44856,18652,17092,31354,18430,17755,5388,44878,18185,44711,44894,45286,45262,45421,16935,18572,17527,36472,30135,6782,18719,45180,44764,44671,17009,17492,44762,44853)
Unknown column 'np.person' in 'where clause'