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 (45421,13425,18286,44854,28530,18719,17335,44671,14402,4765,18894,44853,13922,44836,45346,32454,44687,45051,17601,17835,17556,39676,44861,24441,44764,44875,45517,18301,44863,13988,44745,6862,18648,17351,18185,44689,18237,44848,4686,16885,17492,44669,17703,44767,45518,18430,30986,28313,17114,9341,45072,45262,8753,45180,18900,44856,17981,17527,19057,17839,44894,44868,44869,44674,44685,37057,17755,45229,6609,44765)
Unknown column 'np.person' in 'where clause'