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 (44765,6862,44739,18185,44853,44858,44764,18650,28530,18719,17839,44775,30963,8753,19078,45180,13,45421,45561,44854,44711,17835,44687,17009,24412,44845,32454,17092,17904,17601,18894,5388,18446,17657,44837,22509,45177,17755,44640,44856,31354,18996,30986,45262,44745,44689,44835,44863,18688,18572,44671,10402,45042,44861,16885,13425,18794,45515,45043,44674,18430,6782,18648,44849,18353,44767,44869,30135,44875,17981)
Unknown column 'np.person' in 'where clause'