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 (44851,39676,44865,45042,17492,9341,17835,45180,17904,28530,44845,5259,44689,16885,18650,17527,44766,18430,36472,19078,18185,45277,18286,44711,43800,6862,18042,17981,24438,44687,14402,17092,19057,17657,45517,18648,44869,45262,17839,18719,17703,44685,44765,18237,45072,44867,3,17237,22509,44866,17278,45516,18996,45051,18301,24412,44768,34194,6609,18279,44870,18900,44531,44775,24441,18427,30986,18652,17009,45561)
Unknown column 'np.person' in 'where clause'