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 (28313,45516,45180,44849,5993,6609,18996,30986,18900,44767,13,17335,24438,19057,18794,44854,19078,5388,44870,44867,17771,34194,18446,17904,37267,44861,24441,17278,45346,5410,24412,44745,44674,44685,44739,44845,17703,45072,45277,6782,44866,36472,18650,45517,45286,30135,44768,13922,44836,17092,45421,18648,44873,45051,44531,17848,17527,18719,45515,6875,17756,18353,44856,44869,44894,16885,22509,9341,17657,44835)
Unknown column 'np.person' in 'where clause'