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 (31354,18427,44869,45177,45567,24412,6862,45180,6609,37057,16935,17839,17527,44849,17848,36472,44875,18648,18042,19057,8753,44674,17703,32454,30963,17755,45517,45051,44766,45518,45516,39676,18794,18688,30135,24411,17351,18894,14622,44685,4686,17771,44745,44767,13,17835,18279,18650,44764,17278,19078,3,44837,18996,44836,45277,45072,4765,3883,44858,17556,5993,18353,13988,45043,44866,17904,44669,34194,18286)
Unknown column 'np.person' in 'where clause'