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 (39676,17756,44687,44689,18572,17114,37267,34194,43800,13,6782,18719,30986,44671,44853,44835,44767,17335,17009,44766,24438,17527,44869,44775,44870,36472,44894,44861,45229,44884,32454,44745,28313,17839,16885,44848,37057,18279,44768,45516,44762,17351,13922,45177,44865,18648,18446,45518,31354,18427,44854,17981,44875,6875,9341,45517,5388,14402,19057,14622,5410,30135,18996,17657,45043,18430,17848,17904,44836,18353)
Unknown column 'np.person' in 'where clause'