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 (45346,18279,37267,17527,17756,37057,17092,44873,44685,18286,18794,18237,44865,39676,45567,43800,45277,17835,44674,44711,44868,44856,17848,44531,44768,44739,18688,17703,16935,30135,44745,44836,45072,18572,44851,17335,17839,45262,4686,34194,44863,18894,6862,45516,4765,28530,10402,44640,19078,45042,18648,17755,18042,17904,44775,44855,44869,18900,6782,18446,17351,19057,18353,18172,6609,17556,44867,18650,45517,45518)
Unknown column 'np.person' in 'where clause'