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 (4765,18185,13922,4686,44894,44764,44848,17835,45262,17848,18446,18427,18900,18894,44863,37267,43800,17556,44845,45229,14402,13,44768,18172,13988,45517,28313,45567,17492,18652,44835,44856,6609,17009,44870,18572,17278,44765,44711,5993,3883,44836,16885,45042,8753,44868,45277,18996,31354,24412,44685,45561,44869,18286,17981,9341,17755,44878,45072,17527,17335,44866,19078,44873,30986,17237,18650,44854,44687,18688)
Unknown column 'np.person' in 'where clause'