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 (18794,45051,17756,18446,18719,3883,18237,8753,28313,45518,18981,44531,17009,44764,44894,18900,18688,18185,45567,18279,44836,44845,45072,17904,44851,44866,44849,18648,45277,9341,44867,45177,44884,17703,39676,37057,17981,14622,17839,24438,5259,45042,45346,18301,45286,18286,44835,45421,6875,19078,44762,44674,17351,44856,4765,45517,44768,18042,17237,36472,17278,44863,44711,13425,17556,44848,45515,44854,30963,17527)
Unknown column 'np.person' in 'where clause'