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 (44866,17703,18572,44837,18185,44689,17835,44884,45421,45177,22509,45262,17839,45277,44835,18688,44765,24441,43800,30135,32454,6782,6609,17335,44855,44739,17351,18286,3,44870,45517,44687,18981,45072,18900,39676,37057,44861,24412,17756,44873,18353,28313,44878,17556,44711,17114,8753,13922,18279,44845,44775,45229,36472,9341,17657,44767,44669,45561,13,19057,18652,16885,34194,44869,45567,4686,44671,44745,14622)
Unknown column 'np.person' in 'where clause'