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 (3,5259,4765,28313,45515,17556,18430,10402,17601,44768,44856,45567,14402,44867,18572,44854,44640,44669,44767,45262,24441,45516,19057,44745,17904,18427,17771,45421,19078,18286,17527,44845,16935,30963,17835,44739,18237,44674,44878,44687,44869,44853,18172,6609,44894,18353,18650,17492,6862,6782,22509,44689,45042,44837,44873,34194,45180,44851,4686,28530,39676,13425,18042,44835,18648,45517,44531,45072,44766,17009)
Unknown column 'np.person' in 'where clause'