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 (44849,45177,45561,4765,31354,44640,8753,24412,44884,17755,44875,45421,45262,45515,44674,6875,44878,44865,17114,45277,9341,18185,17237,17904,18172,16885,44671,5410,18688,17351,44739,5993,45051,45072,22509,34194,18650,44766,30986,45518,18286,17009,44853,44869,44711,44854,18353,18794,44689,14622,17335,17703,44845,45346,24441,44851,44861,6862,18042,17278,3883,44764,44894,18446,45043,6609,45180,32454,17092,36472)
Unknown column 'np.person' in 'where clause'