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 (45421,44867,44870,44878,45567,17703,45043,14402,17755,45262,17092,44531,17848,6609,5259,14622,45518,24441,18719,39676,45277,13,17981,28313,28530,44869,45515,44762,5410,30986,13425,17601,44868,18279,9341,45517,17527,16935,18286,18650,18996,6862,44845,10402,45051,44835,31354,17835,18572,19057,44689,17237,45177,44855,44853,17904,17556,17114,37267,44873,13988,43800,44848,30135,24411,17335,18794,44671,19078,45072)
Unknown column 'np.person' in 'where clause'