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 (34194,18279,28530,45043,17904,17756,16935,6862,44858,17981,18894,45177,44851,5993,18353,24438,39676,17351,37267,32454,17839,44875,44868,13922,24411,44775,44689,17114,17755,44767,17492,45346,18794,6609,45072,9341,18237,44845,3,28313,45516,45517,17527,45567,17771,18301,17835,18042,18172,17556,44765,6875,45421,45051,44531,18286,31354,44835,24441,5259,4765,44867,19078,18981,44869,44671,14622,44856,6782,10402)
Unknown column 'np.person' in 'where clause'