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 (17756,18301,4686,44745,10402,45177,18237,17755,44867,44836,24411,44671,16935,18353,34194,18648,31354,28313,24438,44858,22509,6609,18427,44873,17335,18996,44854,28530,44849,5259,13922,44851,18652,18650,39676,17114,44875,37057,18042,45051,19057,44768,17527,6782,17009,44856,30135,18981,44685,30986,3883,13425,44765,44687,18572,44767,37267,44861,5388,36472,17981,18185,45515,45072,44878,44669,18279,17848,24441,45277)
Unknown column 'np.person' in 'where clause'