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 (44835,14622,17092,18652,17703,44767,17114,3883,5388,19078,45346,18794,45286,31354,44745,18353,17009,44861,44858,16935,32454,18237,44873,18172,45262,18648,44837,6609,13425,17981,5993,17835,18042,18572,5410,18301,16885,37267,17904,45229,17237,44765,17657,18185,9341,44854,44768,17848,22509,36472,44669,44764,18446,30986,5259,44845,30963,44766,43800,18900,39676,18996,4686,45517,18427,37057,44674,44836,45277,44863)
Unknown column 'np.person' in 'where clause'