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 (18353,13988,18719,17492,17755,30986,44765,17839,44858,44768,17335,18237,18042,45421,18648,37057,44878,17556,45518,17237,45180,17527,44745,44870,30963,19057,45346,44861,44873,44867,44865,44868,6609,28530,45262,44866,17009,14402,5388,36472,45043,18794,18652,17092,44894,44848,45515,44739,18650,28313,18688,17771,44531,44849,44689,44856,43800,13425,45072,18981,44767,18430,14622,39676,44854,34194,16885,44853,5259,44687)
Unknown column 'np.person' in 'where clause'