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 (44870,45518,24412,4686,19057,37267,18650,24441,44863,8753,18648,24411,17601,45051,44867,18185,17756,45516,22509,17278,44711,44848,18719,44685,18427,44869,34194,44775,45515,44845,17009,45229,17527,14402,18279,17351,44866,45180,18353,16935,37057,30986,44849,18446,18900,44768,44851,44884,44640,5410,30963,44766,32454,44687,18572,5993,43800,44836,13425,45277,14622,44745,45517,6875,16885,17904,3883,17755,44894,45042)
Unknown column 'np.person' in 'where clause'