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 (44739,45180,44870,18996,44531,18185,44836,44863,45072,44865,6862,18652,44861,17839,17981,45515,44854,18688,5259,45516,5410,5993,17556,43800,17601,45043,44745,44674,17755,18719,18648,30986,45042,36472,28530,17835,44767,18650,24412,45177,31354,17848,17351,44873,44689,44855,18900,45051,37057,6875,44711,44849,16935,45561,17092,44868,45517,18172,22509,8753,4765,18353,44845,3,45518,17237,18427,18301,13,17904)
Unknown column 'np.person' in 'where clause'