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 (17755,17114,3,45421,44711,39676,44873,18353,31354,28313,45567,18301,44851,5388,44845,30135,13988,18572,4686,30963,19078,18279,18430,18172,44669,17092,44531,17237,44764,44837,37267,44687,43800,44858,44878,45346,17556,45277,37057,44739,17756,44855,22509,5259,17835,44867,44861,45518,18688,44849,17839,18185,44671,5993,24412,44870,44836,16935,45072,18981,8753,44745,24441,44640,34194,45262,18648,44674,16885,44768)
Unknown column 'np.person' in 'where clause'