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 (17755,17835,17492,4686,45421,44875,18996,18648,45043,44848,44863,3883,44867,6782,6875,45042,18794,37057,17601,24441,44855,44869,19057,17657,13425,44845,18237,45229,17756,44669,18652,43800,45346,44853,45515,44868,44766,18279,17092,44745,18430,24412,45277,45262,44873,44870,18172,17009,18650,39676,45286,44836,24438,44768,44837,17848,44835,18981,18572,44767,45051,18286,45180,17771,44858,44865,6609,8753,30986,17278)
Unknown column 'np.person' in 'where clause'