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 (45051,24441,13922,44837,18688,18996,44867,45515,44764,44711,44848,45517,18353,5410,44835,6609,37057,17335,6862,4765,45567,18301,18446,44768,44861,17601,13988,18650,17703,18237,17009,44671,44766,18794,45277,44869,3,19078,17092,44767,18900,37267,17114,44851,45421,36472,24411,19057,3883,17771,18185,5259,18894,6875,18286,18652,30986,22509,14622,18042,14402,18279,44856,28313,18430,17527,18648,44875,17981,44775)
Unknown column 'np.person' in 'where clause'