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 (32454,17092,45043,44711,6609,45072,18652,44836,17703,44739,17601,44837,44856,13,18894,24438,13425,18900,5388,17351,44867,44745,18427,44767,44868,44875,44861,17756,45042,30986,24441,44878,44873,17278,45516,31354,18996,17492,45262,19057,18719,22509,44674,17335,44689,44858,44766,17904,18353,6875,44869,28530,6782,4765,45180,17835,16935,37267,45567,18794,17755,18279,24412,44671,44894,45277,44863,44849,18446,17237)
Unknown column 'np.person' in 'where clause'