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 (10402,45072,17771,17839,44884,17835,44858,44865,44866,44671,44854,18301,5259,44836,28313,44689,43800,18237,44848,44775,19078,45286,44767,18794,16885,39676,45177,5388,17601,44873,28530,16935,44870,45042,45180,44835,44837,8753,17904,45518,36472,18279,17657,44711,18900,44856,44669,45567,24441,30986,44875,34194,44863,18572,44745,45051,45516,45346,14622,44851,17237,18185,45229,44845,44878,45561,37057,17848,18286,44855)
Unknown column 'np.person' in 'where clause'