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 (44669,13,9341,14622,18185,17237,6782,32454,18996,17114,45051,44768,18353,17335,44870,18981,44739,43800,17839,45567,18572,17009,44836,28530,44884,45277,17492,4686,18650,8753,39676,45515,28313,45516,44745,45517,44765,44853,18719,44671,34194,44845,44861,18794,44687,24438,18301,17556,30135,18446,22509,18237,44869,17092,19057,45042,19078,45229,45072,44775,30986,44867,45561,17527,18427,17756,44849,44878,18894,45518)
Unknown column 'np.person' in 'where clause'