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 (45262,30135,4765,17755,44640,44868,18427,44739,44851,44674,24411,45561,18237,3883,30986,34194,18894,5259,18279,18688,17904,18652,45177,45286,44848,24412,18042,17351,45051,44865,18650,44835,44745,45518,37267,44669,18185,44863,45516,14622,5410,18286,18996,22509,32454,44768,45042,3,39676,13922,44836,6609,18301,18572,13,44878,45517,44849,18981,44711,9341,24441,44762,45515,45277,44866,17092,28313,36472,44875)
Unknown column 'np.person' in 'where clause'