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 (30986,17848,14402,28530,39676,44853,24411,6609,18981,17755,17556,18172,44861,45229,44867,17092,44848,45177,5410,24412,18042,44674,44884,45561,44745,34194,18688,17237,19057,45515,44835,44873,18900,30135,44764,44894,45517,44687,18237,17335,45072,18894,13425,31354,18572,5388,18279,17839,18996,44870,44671,45567,45421,44863,44854,17114,17492,44711,45180,45043,24441,44762,5259,18719,10402,14622,45346,45051,9341,17657)
Unknown column 'np.person' in 'where clause'