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 (6609,17556,18652,18650,44711,45262,44884,17848,17771,44867,45567,13425,13988,17114,18185,44875,28313,17755,18794,44762,17657,17278,4686,45229,24441,44894,44870,18427,39676,17703,44685,17092,30135,18279,44765,45042,3,45346,44858,44745,44767,45517,44835,6875,17009,44873,18688,6782,44863,14402,17756,17601,44878,18446,44689,45286,44856,45561,16935,44855,6862,28530,36472,18981,44869,17981,17904,17839,17492,45043)
Unknown column 'np.person' in 'where clause'