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 (17114,44869,17601,18572,44836,24412,44685,19078,18981,18237,44858,18894,5410,44855,45346,44669,17703,18353,37267,44531,9341,44739,17092,6782,6862,44764,5259,45042,24438,17657,30986,17755,44867,45286,28530,16885,44768,44884,5388,34194,44837,39676,13425,44848,44674,18996,45051,18042,44861,31354,45043,17981,13922,22509,44865,45518,18301,45177,44745,44640,17492,44866,17278,17556,44765,44873,44878,44894,17237,19057)
Unknown column 'np.person' in 'where clause'