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 (44640,37057,45517,30986,18688,17657,44878,44739,45277,17009,18286,18427,44766,13,45421,44855,44845,45043,6782,18572,44894,39676,18794,17351,44856,44764,9341,44854,5388,44866,6609,45516,18900,17904,18353,44853,3883,17092,45042,19078,44711,44689,28530,18185,44765,17527,44861,44884,28313,44851,45561,45286,44669,43800,18648,44868,44867,18301,4765,45051,18652,18894,5410,18430,37267,18446,24438,45515,44762,44858)
Unknown column 'np.person' in 'where clause'