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 (17835,44835,5410,31354,22509,44855,19078,44689,6609,45286,17114,8753,44865,13425,44867,37057,16935,44764,39676,44861,17904,13988,3,16885,17703,5259,24411,18430,9341,18185,6862,24441,30135,44884,18981,45180,43800,24438,18279,18237,24412,44766,45516,10402,5388,37267,17848,45177,18688,18650,44866,44762,18427,45518,17556,45517,44849,17756,36472,45515,44836,44868,44894,45051,18042,17009,45043,17839,18572,28313)
Unknown column 'np.person' in 'where clause'