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,17904,18185,44711,17839,17835,44865,13,44767,4686,45567,45346,17335,17278,17756,44687,45072,44762,24412,17527,18042,24438,24411,17755,6782,17351,17009,18719,36472,18286,44837,45277,37267,44766,44835,44689,6862,30986,44884,5259,44765,17981,3883,45561,18894,13922,17114,17601,37057,18648,18430,18652,39676,17556,3,32454,18446,44870,17092,45043,44775,18353,45517,45518,44848,18279,45515,45262,44671,44867)
Unknown column 'np.person' in 'where clause'