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 (17904,44711,3,44866,18794,19057,45346,6782,44894,24411,16935,44854,24412,44835,44867,45515,45042,17755,44767,44689,18446,17556,17657,18648,37267,16885,28313,44848,37057,17237,45180,44863,44669,32454,18279,45229,44674,44766,17335,44765,10402,44671,30963,17492,18650,17351,44884,18719,30986,45567,17981,6862,18042,8753,18652,44768,5993,43800,36472,17278,45277,17703,9341,44868,24438,6609,5388,45262,18286,44878)
Unknown column 'np.person' in 'where clause'