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 (44873,45262,44884,44867,4765,44845,17009,45518,5259,44745,24411,24438,36472,17981,44837,22509,17904,45561,39676,44866,44762,44531,24412,18652,5410,45567,44766,13922,45043,17114,37267,18719,44851,18185,44765,44836,8753,17278,44768,43800,44669,37057,18427,6862,45072,6875,44767,45516,17556,44869,44764,18996,28530,44856,18042,44689,17848,17657,32454,44775,44863,44855,31354,18237,44861,45517,45051,18894,44875,6609)
Unknown column 'np.person' in 'where clause'