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 (17114,17492,44765,44856,45051,44868,18981,14402,17278,18172,32454,17904,13425,44531,44866,44768,6782,18900,18650,5388,44853,9341,45567,16885,18430,17839,44640,17835,18185,30986,6875,4686,45262,24411,44869,17756,22509,34194,18286,44836,44674,45346,45516,17703,44671,6862,14622,18794,44837,44894,37267,19078,44687,17527,45043,45180,17556,44739,44711,44775,5259,30963,17009,17657,36472,18353,18427,31354,10402,17335)
Unknown column 'np.person' in 'where clause'