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 (17657,44869,18650,44870,24411,18648,17904,18688,44865,44768,44851,18237,44873,17703,18900,44863,17556,16885,44894,45072,18042,44853,30963,44868,44861,45567,17092,30135,13922,4686,24412,45518,18572,45286,8753,16935,18353,13988,18185,44764,37057,17839,44884,17755,6782,19078,45346,18427,44854,14622,44766,4765,45051,5388,22509,45561,44878,18301,44711,17114,44875,17756,17771,44671,43800,44848,44845,44775,45516,17351)
Unknown column 'np.person' in 'where clause'