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 (30986,45515,14402,18650,17492,45277,17755,45561,24411,45286,44762,18648,18185,17527,18688,16935,18353,17981,17335,34194,45180,44669,44739,28313,44863,18572,39676,44775,17114,16885,18172,17756,18430,22509,18981,17092,6609,44835,44671,44853,14622,6862,44856,44836,44640,44867,17771,24441,44767,17904,17848,18237,18652,44861,45346,44837,45421,44854,45516,44858,44873,17703,44845,18996,6782,18427,37267,44848,5259,44685)
Unknown column 'np.person' in 'where clause'