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 (18996,32454,17755,44711,17771,19057,45561,17835,44739,17351,18446,44775,45516,18353,6862,43800,18286,18237,14622,28530,44837,45421,17237,18430,44854,18894,18652,16935,44869,44853,24411,44884,39676,44861,17703,44855,45515,18279,22509,6609,44762,17657,36472,30986,44767,18688,10402,44866,44689,44848,18794,6782,44856,45567,19078,5388,13,45286,18172,16885,44870,13425,14402,13988,44836,18572,44878,45043,4686,4765)
Unknown column 'np.person' in 'where clause'