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 (45515,44836,5259,18648,44858,45346,30963,31354,18185,44868,37057,44674,44894,17492,45043,44851,45042,17848,45277,44775,3,17904,44766,24441,45561,44870,45286,14622,44884,44856,4686,44685,6609,45229,44687,44865,28313,18237,24412,44845,14402,44849,17114,6862,16935,24438,45051,6875,19078,44867,9341,19057,17351,17755,18353,44640,18900,17756,8753,44869,44835,39676,6782,44669,17092,30986,45518,30135,44837,18981)
Unknown column 'np.person' in 'where clause'