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 (17657,45561,44855,45517,45277,44851,18427,44671,18652,16935,17114,18648,17835,4686,18286,17848,44837,45421,37057,45043,17351,44745,44685,13,13988,44764,44869,44866,17771,3,18237,19057,44765,28313,28530,17904,10402,18981,44865,17703,44849,44640,44762,36472,17009,18301,30135,13922,44878,45515,3883,45051,17756,30986,45042,39676,18719,32454,4765,44739,13425,14402,44531,45180,17755,5388,6875,44775,5993,24411)
Unknown column 'np.person' in 'where clause'