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 (32454,17335,44766,24438,18353,44854,18185,14622,17114,17009,31354,18981,45262,44878,24412,18648,44689,44845,30986,17237,4686,18301,17839,34194,45286,17981,44870,44775,18652,44863,18172,4765,18900,18237,17527,44849,10402,44768,45567,6875,44764,45177,22509,18794,13922,44855,24441,44531,44856,45517,45515,45518,17351,30963,44858,44851,17755,6609,44685,18286,18430,37057,44765,45561,45346,19078,44745,6862,45051,44837)
Unknown column 'np.person' in 'where clause'