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,44640,17771,44739,5993,44775,45043,45180,9341,45262,44873,17335,5259,32454,16935,44765,45051,14402,17703,19057,19078,17904,18996,6782,44878,45072,44766,44869,45516,44861,44531,18650,18900,45517,44867,44674,17492,44854,18279,17009,3883,13922,44767,17556,17755,17835,18353,18185,44848,18042,39676,10402,44856,17839,18237,45177,24412,45518,44884,18719,17278,44863,17092,16885,18648,44837,24441,24411,44768,44851)
Unknown column 'np.person' in 'where clause'