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 (44685,18279,44875,44531,44858,9341,18427,28313,44687,18652,44884,19057,17351,43800,18446,44835,45567,44873,44848,44855,18688,44765,18650,44775,44671,18572,36472,45516,28530,44870,18981,45262,17756,44866,45051,18185,39676,44689,17114,18719,45421,44674,17755,44766,17335,45517,44861,10402,17657,18900,44863,16885,34194,44767,19078,45286,18648,5410,18430,24412,44868,24438,17839,30135,44762,44869,44854,13,6862,18237)
Unknown column 'np.person' in 'where clause'