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 (44878,44766,5993,9341,17237,6875,45177,37057,45518,19057,13922,24412,4765,6862,44762,45051,44711,17904,18042,32454,17092,43800,44768,44687,18794,17771,45180,17755,44669,44870,44868,45517,45286,44739,44685,6609,30986,44884,19078,5410,17703,44674,17981,44875,17009,45043,44863,44765,18648,44869,8753,44854,44531,17114,14622,44835,3883,44745,16935,44849,44848,18572,18427,31354,44640,34194,18996,45072,6782,45567)
Unknown column 'np.person' in 'where clause'