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 (9341,44837,17335,45515,17839,44858,13,18279,18237,18446,18996,5259,44768,6875,45286,44866,17492,45518,17527,45516,17756,24411,16935,8753,44775,17835,10402,45042,6782,24412,43800,45180,28530,44836,45043,17556,45277,24438,44853,36472,31354,37057,44766,18286,45346,45051,44854,45262,44873,44640,44848,18648,18185,18427,3883,19078,39676,44745,17114,44856,17237,3,24441,44669,22509,44687,44739,18652,17278,17904)
Unknown column 'np.person' in 'where clause'