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 (44884,17771,44674,44775,6875,16935,17839,18719,45229,18430,17335,44531,44849,44669,45042,45518,44858,18446,17092,44745,13922,28530,44835,18353,16885,39676,17114,18648,44766,5259,17848,44868,18650,5388,44845,44861,34194,44863,44848,18427,18794,17492,18996,17601,44875,44856,44640,45517,17904,17755,45051,24441,44870,8753,18981,44894,44854,44873,18688,9341,17237,28313,45262,45515,44768,18652,44685,44855,44865,45072)
Unknown column 'np.person' in 'where clause'