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 (6609,44873,17904,45567,44868,5388,18652,13425,17703,3,18650,45421,19057,44869,45051,45286,44671,17835,8753,45072,37267,18648,45177,18172,17009,44884,18301,18900,43800,18279,6782,37057,45515,17237,24441,44878,45518,17492,17114,44764,30986,28313,45346,45180,44765,18237,44745,31354,44863,44870,17771,44858,44866,44845,17351,14402,17981,18688,44854,44865,17755,17092,34194,45277,18353,45517,17527,44861,18286,18894)
Unknown column 'np.person' in 'where clause'