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 (44866,45567,44858,17092,44865,19078,5388,44863,18900,22509,44861,18794,44768,18650,37267,17009,44671,28313,5993,18172,17527,17756,44689,17771,18996,18237,44762,18572,45072,45286,3,6782,18427,44836,18042,44766,44531,14402,17351,17492,44837,45561,45043,18652,14622,17278,44894,39676,18446,44869,44849,18688,44875,44745,17335,44853,17904,44835,5259,18894,4765,17657,18185,4686,17703,6862,44674,44870,37057,17755)
Unknown column 'np.person' in 'where clause'