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 (17527,44858,18996,18237,17237,44745,39676,5993,9341,44884,18572,18981,37267,36472,17839,44762,24438,44853,45072,17703,18172,18279,17981,32454,44865,17335,45051,18430,17756,4765,44869,22509,18900,44689,13,45043,8753,17492,30986,17092,45515,18894,17278,44866,44863,18648,44671,31354,44856,44870,45516,44835,16885,17771,17114,45561,17556,44766,5410,45180,6782,18446,44674,43800,44711,45286,44875,13922,28313,45517)
Unknown column 'np.person' in 'where clause'