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 (19078,45051,44875,34194,44884,45180,18185,13425,9341,18894,44848,44764,16935,22509,17756,45262,45567,31354,17771,4686,17009,18719,17703,17981,39676,18650,10402,5388,5259,44687,5410,45177,24411,44861,32454,44685,45072,44767,6609,17278,18648,4765,30986,45561,28313,45346,44869,44745,44849,17527,18301,17114,13922,18996,44865,17657,44863,44866,17839,44775,18652,18279,44836,43800,44868,44858,44765,17755,17556,45043)
Unknown column 'np.person' in 'where clause'