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 (18981,44711,13988,24411,24412,17835,44835,17657,44849,14402,10402,31354,44689,45277,5410,30986,44853,44669,45517,17278,44884,37057,28313,43800,45516,3,45042,44640,44766,44764,44870,9341,6782,24438,32454,18237,45043,36472,45515,17351,17492,44745,18301,17904,17839,18279,44845,44775,16885,6609,18996,18572,45180,30963,17114,44894,45072,44878,44868,17237,18794,45286,18719,44685,44858,17771,18430,44739,6862,44863)
Unknown column 'np.person' in 'where clause'