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 (18652,6862,18719,18650,18237,30135,44865,17278,19078,44869,44848,45229,44689,32454,45042,45516,18981,45043,44671,18794,17657,31354,16935,44849,44764,44855,24441,18900,16885,45072,18572,17351,18996,45277,36472,44845,44863,13,17527,44870,17114,17237,4686,44669,17492,19057,17092,44768,43800,18648,3883,37267,4765,45421,44854,18446,6875,8753,45517,17703,6609,13988,24438,5259,44861,44745,17848,17904,18185,44767)
Unknown column 'np.person' in 'where clause'