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 (17601,44845,17771,14622,13988,43800,44775,44853,44884,44856,44868,30135,45518,17335,24411,44767,17703,16885,36472,44674,45072,44866,17556,17351,17839,45051,44835,45561,18427,18430,44765,44531,6609,18981,18237,45229,3,24412,45515,18353,24441,5993,44855,14402,17237,44849,18719,44858,44867,44875,44870,17755,17278,13922,45421,44640,44873,44894,18650,17981,17009,18652,39676,45177,45042,45516,44869,17492,5410,45277)
Unknown column 'np.person' in 'where clause'