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,44762,24411,17601,45072,44869,43800,6782,44870,45516,44875,18719,44867,18430,24438,44765,17756,17848,45567,17835,18042,24412,44863,5259,6862,30986,44878,45515,18900,31354,44856,18353,34194,17351,45277,45561,18286,18894,44766,44849,28530,44767,44671,17981,3,17839,44687,44851,17278,8753,4765,19078,17237,17492,18446,32454,44865,45421,45286,44531,44669,17904,45262,30135,44848,10402,36472,17755,45346,17556)
Unknown column 'np.person' in 'where clause'