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 (18353,37267,44845,45177,44868,24438,30963,44762,18650,44689,36472,44531,37057,44766,44685,17703,24412,18794,44869,9341,44674,4686,30986,17839,18572,45042,45561,44894,44851,44767,44861,18185,17848,17237,45421,44855,45346,19078,43800,44878,44711,17114,44745,28530,8753,45518,44669,28313,31354,13988,39676,18237,14622,18427,44764,5993,44835,6782,44739,17492,45517,13,18648,32454,44863,44671,18981,17756,44858,44866)
Unknown column 'np.person' in 'where clause'