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,30986,44848,4686,17114,44855,17556,44745,44836,18648,44766,14622,28313,30963,45516,16885,45515,44861,24412,18446,45043,37267,44768,44894,14402,18894,17009,17657,44835,45177,18353,43800,45229,5993,45346,45277,44868,44878,18042,30135,3883,17335,18427,44767,18900,18688,8753,17848,44775,45421,6782,45072,44531,18794,45042,13988,9341,45051,45561,44711,44856,18430,44640,17492,45180,32454,24438,18172,18719,37057)
Unknown column 'np.person' in 'where clause'