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,45515,44854,44863,43800,14622,13,44762,17278,18427,45262,17848,44766,44775,17703,17335,18279,13988,45516,44866,24411,18185,45229,18794,37267,44711,36472,6609,45072,17527,5410,44835,30963,17904,44687,45277,24438,18688,17601,17657,39676,44868,4686,44768,28530,24412,44878,19057,5993,44873,44767,44845,18650,17237,44869,17755,19078,18172,24441,9341,17351,18286,18446,44669,17009,45180,32454,18894,8753,18652)
Unknown column 'np.person' in 'where clause'