Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (44689,18301,22509,18719,44854,44766,18688,32454,44884,44531,44669,17335,44851,44869,44687,45515,36472,5410,4765,19078,44745,17755,45567,17756,39676,13922,18900,18981,17703,44775,6875,17114,17839,17904,24438,44711,18353,18237,19057,44855,17237,18648,28313,45043,8753,18279,45518,44837,17981,45229,44866,6782,44856,18430,24412,30963,45042,44858,17492,44685,18996,37057,18894,44845,24441,10402,44875,44870,9341,24411)
Unknown column 'np.person' in 'where clause'