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 (18794,17114,44873,44866,6875,45229,44671,45515,13,14402,19057,44851,44868,43800,45516,17703,45051,44875,44762,18650,8753,4765,9341,44855,45518,18353,44865,18648,44640,44685,16885,18688,18430,13425,44884,44711,18894,34194,45072,17092,45262,45177,44739,44674,24412,44689,44745,44870,45567,37057,18172,44848,45286,44854,18900,39676,17981,5410,28313,17848,17756,19078,17492,45043,28530,44775,18237,45042,17755,45180)
Unknown column 'np.person' in 'where clause'