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 (44836,44873,10402,18650,44765,16935,6875,44868,44861,45229,17981,44875,17237,44849,13922,44863,16885,9341,24441,17755,44739,44866,13988,18430,18237,45072,30135,44884,18794,17092,17835,18719,13,18301,17527,5410,44640,6782,28530,45567,44869,18172,44865,5993,44870,44674,44531,45043,14622,4686,44768,45346,8753,44854,17335,45262,6609,24438,18446,45180,18652,19057,45277,18572,30986,44687,5388,45515,44671,43800)
Unknown column 'np.person' in 'where clause'