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 (45072,45421,18185,17351,44671,17556,45286,39676,45277,17114,18900,44851,44869,18446,44764,44884,13988,44745,17092,17657,8753,17756,9341,45517,17839,44711,18652,44836,30986,17601,17904,44835,4686,24411,30135,32454,18430,28313,18286,31354,44849,18650,6862,44765,45229,45262,18719,17527,44867,44870,18172,44854,44873,17755,44865,18996,17835,44766,44689,44878,5388,45346,44685,6609,44875,44855,10402,17703,45518,44669)
Unknown column 'np.person' in 'where clause'