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 (44765,17601,18648,44687,13425,44870,32454,17904,44775,44531,44669,18572,34194,4686,44866,18981,17835,44640,17771,44768,44878,37057,17755,17351,17009,13,17237,44685,16935,17335,45515,44884,22509,44836,44873,30135,44875,14402,44861,44837,18286,24438,45051,44868,44867,10402,44674,28313,24441,18301,45346,3,45286,45229,6862,17092,17657,5993,31354,43800,36472,45043,17114,18353,44671,45421,44894,6875,30986,18042)
Unknown column 'np.person' in 'where clause'