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 (45515,45567,44765,17556,18981,17009,18279,18237,6782,45043,44775,17657,16885,5410,43800,17981,44867,17114,45346,18794,44687,24412,39676,18650,44878,6609,19078,13,44768,9341,44531,18648,3883,8753,19057,18301,18572,45180,3,44866,4765,17848,17351,6862,17492,5993,44851,18286,44671,24441,44674,17839,44855,18894,17527,44745,44764,18172,13425,45042,45518,45561,44861,24411,18900,44711,45051,45421,44853,4686)
Unknown column 'np.person' in 'where clause'