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 (5259,36472,17601,44856,13988,6782,17771,44766,44739,28530,45517,45180,44711,24411,44671,17556,4765,18648,18430,17703,44865,18301,6862,44853,44894,44854,19078,44531,30963,44884,18446,24438,18981,45042,44851,14622,18688,44836,44674,17839,44768,17848,45346,18286,17981,16935,43800,5410,44849,44855,44745,44685,44867,45286,18185,45518,17755,18042,44863,44866,18572,18172,18996,18794,45567,45515,44858,34194,44640,44687)
Unknown column 'np.person' in 'where clause'