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 (18719,18237,19078,44856,44855,44766,45286,18572,9341,45043,44863,17835,17657,44837,18981,31354,44767,6609,17703,17981,44762,44854,17904,16885,22509,8753,18185,44894,44875,17771,44765,18042,6782,45567,44869,39676,44845,44669,44685,13425,5388,13,18286,24411,37057,17092,44674,44775,45346,44764,24438,44870,45180,44858,24412,36472,14402,44878,45262,18794,4686,14622,34194,17114,30963,13988,32454,44689,44745,44835)
Unknown column 'np.person' in 'where clause'