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 (17092,18172,44867,44894,18353,18185,44870,44849,34194,37057,45262,17703,17839,45051,44768,19057,44855,17981,44856,18900,39676,45516,10402,17601,17755,44762,18650,17848,17835,13425,17009,44765,6609,44858,18301,28313,14622,17492,44640,36472,44884,44766,18430,3883,18894,18981,6782,44767,44739,45515,45072,17756,45517,44689,45042,17657,44853,44531,24441,22509,45180,18237,16935,18648,45177,44854,17335,17556,18427,18286)
Unknown column 'np.person' in 'where clause'