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 (17527,45421,44868,14402,44861,17981,6862,4686,18648,44873,44851,36472,22509,31354,18353,5993,17771,18652,13,39676,18900,18981,44685,44711,18719,44739,17848,44674,17839,17755,18286,44884,44845,13425,17237,3883,45567,34194,30986,18301,45517,30135,45346,18894,44878,44775,10402,44766,8753,45177,44867,44858,32454,17092,45561,17278,5410,18237,44764,44767,24441,18996,24412,45229,44768,44765,28530,17114,5388,45516)
Unknown column 'np.person' in 'where clause'