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 (39676,44863,44870,45229,17351,19057,17114,44687,17771,17904,18279,18652,44855,18042,44858,44865,19078,30135,8753,18185,37057,37267,17009,17335,24438,44671,43800,44765,17601,45561,44851,45262,28313,44835,5259,44878,18572,44745,44867,13988,44775,18996,45515,44768,4765,10402,16885,44766,17756,17278,18446,18650,18794,18688,18719,18894,44674,30986,44640,3883,36472,44884,18172,44856,45421,6782,18430,4686,44531,28530)
Unknown column 'np.person' in 'where clause'