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 (17839,28530,18042,44775,18981,13988,18572,17351,18688,44867,44866,44868,9341,45229,45277,18353,18427,17703,3883,45177,24441,18279,5388,44865,45072,45346,17771,30986,44863,45286,17601,44869,17278,6875,18900,18430,18794,44854,44669,13922,44745,44894,18894,44687,30963,17755,45043,32454,44685,37057,18650,44837,19078,6862,5410,17009,44531,44855,45042,43800,14402,44856,44764,34194,17657,45567,18996,19057,39676,17981)
Unknown column 'np.person' in 'where clause'