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 (30963,44855,13922,44711,44870,17237,24412,13425,31354,44884,44669,37267,17756,18996,45516,44878,18572,18172,44875,44745,39676,18981,30986,18286,3,44767,5259,44674,9341,45262,17009,36472,44689,8753,45518,44531,44762,16885,37057,16935,5993,18719,17492,45180,45177,45561,18430,6875,17755,45567,44851,17351,44856,28313,17904,17601,44685,44854,44868,17114,44866,45229,45043,28530,3883,44687,30135,18650,18688,13)
Unknown column 'np.person' in 'where clause'