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 (44674,44868,44835,17092,45229,8753,16885,17835,5259,17009,18719,4686,43800,18981,44689,45262,45051,3,45072,44531,24411,44870,44873,14402,44855,17601,3883,28530,32454,18650,31354,44894,37057,18652,44858,18996,18185,19057,44775,18353,6782,39676,30986,44711,18286,44762,18042,18572,44849,45042,44845,10402,44878,17756,18648,17657,17904,9341,17556,44687,44861,44854,45517,44837,44671,17703,30135,17351,45561,45180)
Unknown column 'np.person' in 'where clause'