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 (17009,17092,24412,18430,45346,44854,17351,44835,17904,45518,18894,45516,36472,16935,45042,8753,44858,18981,3883,17492,18572,44837,5259,44866,45051,5388,44873,17278,44685,4686,28313,44848,18172,6862,37057,44640,44767,22509,5410,44884,45229,18900,45277,44669,17756,45561,44768,44762,44674,9341,24411,13922,44764,44855,18719,45043,17556,44878,6782,44863,14402,45180,30963,18648,44894,44861,18688,31354,44868,18794)
Unknown column 'np.person' in 'where clause'