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 (14622,18996,44856,17601,17904,36472,22509,17835,45051,32454,44849,13,17771,44870,45517,44854,18894,4765,18430,45262,44768,18301,17092,3,18650,18652,44674,17114,45177,18794,18648,17703,44851,45229,45180,17237,30963,44640,44767,44873,44685,24411,18572,13922,17756,44865,44739,31354,19078,5388,5993,44845,4686,6875,45042,19057,44875,10402,43800,44687,37267,17657,44775,5410,17981,45567,18688,6609,18981,44866)
Unknown column 'np.person' in 'where clause'