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 (17351,18981,44739,16935,44745,13,45277,45515,44870,18648,18572,17556,44669,44868,45262,18279,44766,17527,10402,44861,18042,17601,5388,45042,24411,18301,18719,44863,18650,8753,18286,17009,24412,13988,44894,31354,28313,44775,45346,45421,44867,17703,44884,18894,44764,45043,44878,18996,17848,44845,30135,17835,5993,45286,22509,44835,44765,14402,44689,44767,45516,17839,37057,44851,44873,18446,6862,18172,18430,45229)
Unknown column 'np.person' in 'where clause'