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 (17556,22509,44875,17492,44687,16935,17114,31354,17009,44858,30986,45177,44884,45072,6875,44853,44878,44640,17351,13425,17092,45180,45567,44870,17657,18286,28313,45515,3883,17278,43800,6862,17848,39676,13,44849,17601,19078,18427,17755,6609,18237,18719,8753,44671,44764,44894,28530,44868,44674,18981,45051,44836,45229,18172,17756,17771,44866,18688,36472,44861,30135,44845,44848,44854,18301,30963,44689,6782,18650)
Unknown column 'np.person' in 'where clause'