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 (44853,44894,17009,45421,16885,18301,44836,18794,44764,44875,17335,17278,44851,36472,44768,39676,14622,44869,18650,17904,31354,17492,4765,5259,45561,3,18430,37057,30963,18427,32454,5993,44765,44865,44868,6609,13425,45177,45517,17981,28313,19057,45346,37267,44739,5410,45229,18900,44878,44767,4686,18981,45042,10402,6875,17756,44689,24441,44745,44775,9341,17839,44835,44855,45516,18719,13922,44837,17351,44687)
Unknown column 'np.person' in 'where clause'