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 (45277,45421,18185,44851,44849,18996,17009,17114,45262,14622,18172,24411,17771,17527,17904,18042,18353,17703,44762,44685,45177,4686,44775,5993,17092,17335,17835,44854,13922,37267,45518,18794,44766,6609,44739,32454,13,44861,28530,10402,44669,44867,44868,9341,44848,18648,44689,18894,44711,18981,44870,37057,45229,17237,6875,44863,45517,44873,45515,24438,28313,44835,30135,16885,3,16935,13425,36472,45561,31354)
Unknown column 'np.person' in 'where clause'