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 (30986,44711,9341,44689,18688,10402,44767,24438,17848,44873,45229,19057,17981,17278,44870,44884,37267,45051,44745,19078,44775,44669,44764,17556,44858,30963,18981,17756,17755,44894,28313,44856,13425,45517,44685,18652,18794,45043,37057,18900,6875,36472,17703,44687,3883,8753,18650,17114,44762,18427,44837,3,45042,44854,45515,17492,34194,13988,5259,18572,44848,44853,28530,44836,5388,44868,17771,17839,18648,18353)
Unknown column 'np.person' in 'where clause'