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,45277,18286,44851,5410,18648,18652,44739,44894,18185,44669,18353,19057,18719,17237,18981,44854,13988,45177,43800,18572,19078,6609,14402,44861,17771,44884,44875,45262,45561,18430,24441,18446,17009,18042,6875,44835,44767,18894,44685,45286,44836,37267,17556,17848,18427,45518,30963,44766,44711,44868,31354,44858,44869,44640,17657,45515,44762,45517,45180,13922,17601,44849,44837,44775,39676,44768,14622,45516,45346)
Unknown column 'np.person' in 'where clause'