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 (18286,44851,44856,44845,24411,17492,13922,44764,44711,18794,22509,44855,45421,45561,17657,45262,17755,17981,17009,17904,6782,17703,5410,18688,30963,4686,44873,18353,44739,44854,13,5259,45229,45516,10402,45042,5388,44853,17771,44849,16885,17848,18185,18900,44775,19057,17351,18572,16935,34194,28530,18172,45180,44671,45043,14622,17237,45567,28313,18996,43800,44861,13988,44689,44884,9341,45177,39676,14402,45051)
Unknown column 'np.person' in 'where clause'