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 (44868,17335,17092,17237,45229,17601,17278,44766,9341,45515,37267,44768,39676,18353,13988,17756,18185,31354,18719,44775,18894,18042,44640,18427,18572,44873,18279,16935,45517,45277,18237,44762,6862,18301,17848,44851,45346,44671,44767,17527,44878,18446,30135,30963,37057,3883,17981,18900,44870,30986,5388,18650,44861,44836,24412,18172,3,17755,13425,18688,16885,28313,18430,44849,4765,19078,5993,24411,44854,44856)
Unknown column 'np.person' in 'where clause'