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 (44674,18430,30963,44869,45229,44866,17981,44894,9341,44873,44854,44836,45567,44849,45346,17703,44766,4765,45043,5993,17756,4686,5259,31354,44739,18794,36472,17009,24411,18894,45421,30986,18652,19078,18042,19057,18427,28313,45262,44845,17556,45177,24438,6862,18996,6875,13,44856,45051,45072,18301,44685,18237,44687,30135,45517,17351,32454,17755,18900,44858,44745,18279,13922,14402,17848,39676,17835,18572,17839)
Unknown column 'np.person' in 'where clause'