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 (17335,16935,44531,18981,18719,19057,44764,13,44858,17981,17835,18353,44854,37267,17351,22509,17848,44851,43800,44765,17009,45517,14402,18042,5388,44767,44869,18286,44865,44685,44848,17839,44856,16885,18900,18894,45277,45515,45346,28530,44687,44878,45262,32454,13425,45421,45516,18572,17755,44768,44689,44868,28313,44671,44875,37057,44711,44739,17657,18237,31354,18430,5410,44745,24438,18794,18688,44837,18185,44861)
Unknown column 'np.person' in 'where clause'