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 (18719,4686,44762,13,18650,44775,17278,45043,45051,18301,30135,17771,44894,44669,44856,19078,8753,44837,44767,17092,44739,17114,44531,18900,17835,18688,44689,18185,44845,44858,18286,17492,45518,28313,28530,5259,24412,24441,45042,44861,18279,18430,17527,45180,17755,31354,17756,13425,18981,34194,44848,17703,45515,13988,44768,19057,18237,45421,45346,18446,18996,39676,16885,24411,45262,44836,4765,44766,18172,18572)
Unknown column 'np.person' in 'where clause'