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 (17351,17835,9341,17009,17981,4686,45229,18042,32454,45042,22509,44854,44685,17657,44767,18430,45346,44739,44869,18794,45517,45567,16885,44867,18185,18301,17114,18237,18894,13,17278,37057,17492,18286,17335,44671,18719,17237,44765,17755,44861,45043,37267,45277,45515,44837,45072,6862,44766,44764,6875,18650,17092,24438,18279,13988,18981,19057,3,44835,16935,44849,28530,14402,14622,44711,18353,44845,17527,24441)
Unknown column 'np.person' in 'where clause'