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 (17657,24438,8753,44689,6862,44739,14402,45286,18652,17756,45051,34194,24412,44868,17492,44767,18042,44865,44711,28530,44837,18981,18900,45518,6782,17237,13,45229,3,3883,44674,13922,44835,17114,45072,18648,39676,17351,16885,45567,44873,17839,17771,44685,44851,17703,17904,18446,24411,5410,19057,44766,16935,30135,37057,45346,18279,30963,45277,5259,44854,17009,44869,18719,18353,44853,14622,6609,18185,5388)
Unknown column 'np.person' in 'where clause'