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,45518,44849,44878,17839,45561,45180,24412,9341,18279,17835,37057,13922,18719,31354,44869,17237,45042,44863,44853,45515,17601,44765,18794,44848,45517,18652,45043,32454,44669,17278,44875,17092,44858,44856,14402,18042,44674,18688,17703,24438,4765,44854,18172,30986,44767,16935,44711,30963,18894,4686,18301,45277,13425,3,44866,17351,24411,45567,6782,36472,44836,18446,17756,45177,44531,6875,44689,13,18237)
Unknown column 'np.person' in 'where clause'