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 (45567,18648,3,18794,18894,4686,17492,28530,18996,19057,45177,45262,45277,5259,44640,44870,3883,45180,10402,44884,17848,44878,44767,13988,44745,14402,18981,28313,45286,44866,18650,45421,18430,31354,30963,44868,17835,18900,44711,18237,44875,17657,6609,18652,14622,17092,44689,5388,44669,16885,44762,44849,44848,44845,17771,17904,37057,17703,44765,22509,32454,45042,18572,18172,19078,30986,18279,44687,44854,18301)
Unknown column 'np.person' in 'where clause'