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 (44849,5259,24441,44894,18353,45177,44845,9341,17278,19078,45262,44861,17335,44766,8753,44853,16885,3,44863,17092,43800,17756,36472,6609,18286,18042,45286,18185,44674,17009,24412,17527,28313,18648,17755,45516,18650,14402,44768,17904,4765,45180,17601,44870,44711,5993,44531,13922,45567,44739,18981,17703,18279,10402,34194,17839,44854,44868,22509,13988,39676,17492,44865,13,44851,18430,45517,28530,17981,44671)
Unknown column 'np.person' in 'where clause'