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 (44837,13922,18279,18996,10402,19078,13,36472,17351,18286,30986,17771,44674,44848,5259,18172,44669,44873,13988,16935,28313,44855,18648,45516,18688,18430,44870,44762,45072,14402,44863,17009,31354,44768,28530,17237,24438,17114,3883,44884,18185,13425,18652,24441,17092,37057,17755,45229,17981,45515,9341,45518,44849,19057,17601,44868,18237,17848,44775,17556,18427,44765,37267,18981,17839,44854,44836,17278,17904,45262)
Unknown column 'np.person' in 'where clause'