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 (45567,44878,18648,3,17278,44669,44762,44685,17703,17114,28313,14622,13988,44671,44867,43800,5259,36472,16885,45515,18894,44848,44854,45051,31354,44849,18650,28530,3883,44870,17009,18430,18279,18172,30986,19057,17092,18353,17904,4765,44711,44845,30135,9341,44856,44674,45043,44775,22509,17601,5388,17237,45516,6862,45518,18652,44869,44851,17756,44884,45180,44739,18427,19078,44855,18981,45177,18794,45072,44835)
Unknown column 'np.person' in 'where clause'