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 (18981,45515,44865,17114,43800,6782,44765,44531,18648,44870,30986,18185,18430,18286,18652,18279,45517,30135,44868,10402,45051,18900,28530,31354,45177,44687,6862,17703,45561,44856,16885,17839,45277,24438,44861,18650,17771,44848,17556,17601,44836,18237,44711,13,16935,45421,44851,44674,17492,44745,44858,18894,13988,18446,18572,44845,24441,44689,14622,44873,17848,4765,17756,44869,24411,17009,18794,18719,17981,44866)
Unknown column 'np.person' in 'where clause'