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 (6609,45286,44856,24411,14402,45177,44687,44640,5410,24438,44711,44863,18981,3,45421,17114,44849,44867,44894,18650,14622,45515,13988,22509,44858,18572,13425,17981,30986,45072,44764,44866,44689,18794,37057,44875,44685,36472,16935,17657,18301,44884,17556,44674,44768,45567,30963,44869,44531,31354,17848,6782,44854,45043,19078,44855,17278,44745,18279,18353,44870,32454,18430,45042,44765,18688,5993,44853,17237,17771)
Unknown column 'np.person' in 'where clause'