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 (17114,18042,30963,18185,24412,44884,44687,44861,18652,18237,24411,45043,22509,4686,44745,45262,17756,18446,17556,6875,44878,18572,28530,44671,19057,30986,18794,14402,30135,44863,3883,44870,44775,8753,18430,17351,4765,44669,9341,5259,18981,44867,18719,36472,45180,17835,18650,44848,45072,44640,6782,24438,45051,43800,18279,37267,44855,44739,34194,45229,44851,44854,44674,16935,17335,44837,44866,44873,44835,45421)
Unknown column 'np.person' in 'where clause'