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 (18894,44849,18185,18981,44765,17556,45051,44766,44878,32454,18279,44767,18353,45421,45518,34194,17703,44762,45177,18042,18172,39676,44739,45517,44531,44671,37057,18688,18301,18794,18237,44856,17351,36472,17114,44854,45277,44745,45346,44836,5410,44894,17835,44865,9341,44884,18652,17848,4686,45516,17657,44687,6609,24412,43800,17492,44837,3883,45286,44768,44845,18572,14622,44873,44835,6862,44870,44855,45043,5993)
Unknown column 'np.person' in 'where clause'