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 (44687,17904,45567,18042,44867,24411,45516,44766,18185,17335,44765,17009,17839,44775,18981,18652,14402,44764,44866,17114,17527,44869,17237,44848,45262,45180,18572,44863,8753,17755,18446,16885,34194,4686,19057,6782,18794,18286,44884,13988,36472,18279,18996,44767,44671,45177,44861,44845,17848,44878,6875,5259,17703,32454,6862,44835,44685,17835,17556,28313,44853,13425,14622,39676,45043,18427,9341,44531,24438,44873)
Unknown column 'np.person' in 'where clause'