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 (45043,24412,45180,44674,18237,17114,44869,17237,44848,18794,44858,14402,5259,6782,37057,30986,28313,18894,18042,8753,31354,45042,18427,3883,18650,18185,44845,6609,44764,3,17657,44894,44866,17601,18719,44531,44768,19057,17755,44765,17492,18981,45286,34194,18648,43800,45262,6862,30963,44711,17835,17703,44640,18900,45346,6875,19078,24438,45229,17904,44853,45518,44870,44767,13425,45516,5993,17335,44851,45072)
Unknown column 'np.person' in 'where clause'