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 (18650,44711,13,18996,45072,34194,24441,17335,45421,44865,9341,44674,45516,18430,17527,45180,44669,17703,24411,18286,18185,22509,17771,44856,44858,16885,17839,18894,28313,44849,39676,14622,18719,14402,44767,44640,17278,44869,3883,18237,17835,44867,17114,45042,17848,13922,45567,4686,17009,17755,44873,37057,18427,17601,17092,44687,19078,5410,43800,17756,45177,17556,13988,44836,6782,30963,44762,44875,10402,18794)
Unknown column 'np.person' in 'where clause'