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 (43800,3883,18688,4686,17657,13988,9341,31354,18279,17839,19078,6782,17009,30963,45421,19057,39676,6875,17237,17092,44768,36472,6609,18794,17703,44836,45180,45262,44739,44867,17556,18353,17981,18650,44848,17756,24411,17492,5993,17114,18185,44745,17835,13,8753,18430,14402,24438,44849,24412,6862,37057,18996,45346,44835,44685,44873,17848,44866,17527,5259,44884,37267,44767,18719,45072,44851,45051,32454,14622)
Unknown column 'np.person' in 'where clause'