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 (44861,18185,44767,18981,18237,44531,45286,45561,18648,37057,24412,10402,45516,45517,44867,17981,44856,17756,18572,18652,17703,18427,17556,18900,44854,44689,45277,18446,44845,45043,17835,14622,18719,28313,30963,44711,45515,44855,6862,44853,6875,43800,17237,18353,45072,44765,44739,17771,44894,44873,18996,6609,18688,30986,44868,4765,45051,44835,17278,17657,36472,19078,32454,6782,13988,5388,30135,34194,45262,19057)
Unknown column 'np.person' in 'where clause'