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 (4686,16935,44685,17835,24412,3,28530,44765,17657,17351,17492,18648,17092,18237,18794,44764,44835,18446,19078,44848,5259,44845,13,44855,45229,17848,18279,9341,44875,18172,10402,44870,13922,30963,44674,18996,45517,45051,44867,44884,39676,44868,17527,44878,44858,18427,44861,44873,18652,45421,44689,44866,18286,17755,17756,36472,44865,19057,44669,44739,44836,45515,16885,6875,18900,18650,5410,18894,44863,18572)
Unknown column 'np.person' in 'where clause'