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 (10402,8753,45177,6875,31354,44884,44685,24412,44848,18572,44851,17092,17335,19057,18301,45043,44868,44853,17278,17904,44837,44669,14402,45262,18353,14622,44766,16935,4765,44861,44870,18648,45042,18279,17601,5259,39676,17703,45421,13988,44762,30135,45517,6862,5410,18427,44858,3,44767,17657,36472,18185,30963,44867,45567,28530,44854,18650,44640,18237,18996,44768,44765,18794,45180,44869,13,18719,24441,45051)
Unknown column 'np.person' in 'where clause'