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 (17092,45346,18981,17755,18286,44875,44765,44865,44866,17657,44674,17904,18996,14402,5410,17351,44869,44884,19057,17556,5993,16885,44848,17492,45421,5259,36472,44856,44762,19078,28530,17601,18572,45042,18894,45051,17009,44767,17771,44870,44873,9341,44745,45262,45043,17756,24411,6782,44764,45286,4765,17848,18301,44531,14622,17981,44766,18279,44845,13425,45515,43800,18185,44894,17114,44835,13922,18237,18427,17237)
Unknown column 'np.person' in 'where clause'