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 (18894,18446,17756,17848,17601,17527,44687,44853,44674,44837,18981,44894,13922,5388,44863,44851,17114,44873,45043,31354,28530,45518,17351,30986,18237,18652,32454,24411,18688,17237,16885,39676,45421,14402,18650,44855,17703,44739,44884,44878,30135,44875,44868,44711,28313,30963,44867,18648,19078,17492,6782,45516,8753,18719,5259,17009,18185,44767,16935,3,45286,14622,13988,44745,18279,44765,44836,18996,44858,18172)
Unknown column 'np.person' in 'where clause'