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 (44745,44669,45517,44863,45518,39676,18650,44849,32454,34194,10402,17835,43800,45421,44878,28313,44767,30135,6862,18301,30963,45229,19057,17839,13922,16935,44766,18648,44884,17848,36472,17756,44674,17351,37267,44854,45346,44531,6782,45180,44894,19078,44851,17771,44858,37057,44870,44867,13988,18430,28530,5388,18427,17556,24411,44866,17092,44711,44855,44861,8753,45277,45567,44875,24412,45177,17904,44836,18719,44848)
Unknown column 'np.person' in 'where clause'