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 (37267,9341,17771,17492,44865,44689,18996,17756,44848,14402,5388,6862,44836,45051,44768,19057,44894,4686,6875,45180,45517,45518,3,17601,18185,18981,18794,44745,34194,44851,45277,44764,3883,44861,17981,10402,45561,44766,45072,44687,17092,13922,44856,44685,44855,13,44875,17657,18719,44854,8753,32454,45346,17527,17904,24411,37057,17114,45421,44868,44853,24412,18572,13988,44873,16885,17556,44867,31354,18353)
Unknown column 'np.person' in 'where clause'