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 (39676,4686,44848,3883,18353,44767,18185,14402,17556,44863,45180,31354,44669,19078,13,18042,17492,18981,44851,17904,16885,18719,44640,17755,45516,45561,18688,44775,13922,18286,44845,18650,45262,17848,44866,6875,5410,44711,5388,30135,44873,6862,18652,3,17278,19057,44689,45517,44764,22509,17351,44531,45051,43800,18237,44858,18894,17756,45043,17601,17009,44854,17114,28313,44878,18572,17981,44739,45177,18172)
Unknown column 'np.person' in 'where clause'