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 (44848,44711,17771,17527,6862,17657,45180,17904,44640,13922,18900,45262,44873,45286,24412,44868,6875,8753,17278,18427,18185,44869,44685,18279,18430,18446,44856,4686,45042,17756,5993,44671,18996,30986,31354,45421,18794,6609,17237,44858,18353,44849,17755,44837,30963,3,19078,14402,24411,18042,44861,5259,18301,17601,16935,34194,13,18719,45043,17114,44867,45346,44674,17351,18650,36472,6782,17703,44766,18172)
Unknown column 'np.person' in 'where clause'