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 (44863,14402,44674,8753,45518,18286,28313,18446,4686,13425,19078,16885,44711,45277,44766,5410,45515,3,44640,45567,9341,18794,44775,44875,18301,36472,18648,44894,45043,18572,44531,37057,18042,17981,44837,18353,44851,4765,44835,44865,45346,30963,39676,18900,44849,45042,10402,44856,17278,13988,44767,6609,18430,45229,5993,17839,18185,44845,45180,44855,18650,18981,24412,17527,18279,14622,17771,45286,17835,44685)
Unknown column 'np.person' in 'where clause'