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 (45051,18042,39676,44869,18981,45180,18688,17092,44739,44671,44865,13,44640,45177,3,44531,44856,13988,44765,32454,44836,44866,16885,37057,31354,44863,17278,10402,45042,9341,44848,44687,44775,30986,44855,44867,44894,44873,14622,18427,18446,18648,17351,44870,44849,18185,16935,18286,44685,45515,44689,8753,44669,44884,36472,45043,17771,44764,17114,45346,45262,24411,17756,19057,34194,45229,45516,18894,13425,18900)
Unknown column 'np.person' in 'where clause'