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 (39676,45515,24412,8753,45043,6782,17278,24411,17771,17657,44674,30135,45517,18996,45072,44868,10402,18648,37267,13988,36472,44531,44865,45277,44762,44711,17904,13922,31354,45229,5388,44884,44687,45518,44835,44689,18353,18042,4686,19078,44873,45516,44765,17009,16935,44867,44848,44767,17756,44855,44640,14402,44845,45567,6875,32454,17114,24441,17237,44739,44863,44836,17351,43800,16885,44878,44853,44875,44849,18652)
Unknown column 'np.person' in 'where clause'