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 (6862,18648,30963,5259,44689,18279,44835,17351,45051,45043,45567,17601,17009,17756,22509,37267,32454,3,45515,44869,17278,18427,44866,24441,45072,3883,45518,39676,44863,17114,44669,44858,13,16885,18286,44875,18446,44739,17092,18794,44685,44640,45286,14622,18688,44745,44687,44853,18042,44531,24438,34194,44865,45346,44767,18237,18353,18900,17835,44764,4765,44894,44775,17904,44878,18981,44837,44762,17703,17981)
Unknown column 'np.person' in 'where clause'