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 (18279,6609,9341,18042,44739,45517,6875,44531,45515,44863,45518,24438,17835,18572,17601,44768,45346,17335,44855,5993,18688,10402,17981,18237,44674,3883,5259,30135,17703,17092,18185,44766,39676,17556,13425,6862,45421,17278,18652,18650,45567,17904,31354,18719,18286,44764,44762,17771,44837,45042,44745,18900,44866,17237,19078,3,17351,18981,17114,37267,17009,8753,44775,24412,13,44894,16885,44861,43800,28313)
Unknown column 'np.person' in 'where clause'