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 (13988,17755,45042,45051,6862,17114,30963,44739,44870,44868,6782,18794,44671,44711,18648,44854,37267,3883,44762,44849,44764,18688,14622,18185,16935,18894,13425,17703,44845,44866,5993,18430,44863,24412,17556,44884,5259,44765,18301,17009,17492,30986,45262,44775,31354,9341,44867,37057,44669,17278,17527,44689,19057,44873,17848,18900,18427,4765,18286,44853,18237,44685,6875,17756,44869,17904,45229,6609,18042,3)
Unknown column 'np.person' in 'where clause'