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 (44835,44868,44669,18688,30135,16885,45262,44671,44768,44531,6862,6782,18894,3883,18279,31354,17114,13425,18996,3,17703,37057,45421,44767,44745,30986,13988,4686,45515,17092,32454,45042,18981,28530,17771,17657,44854,24411,18427,44851,17839,44766,45051,44775,6609,18286,44875,44863,44884,13922,44764,18353,45229,18430,44858,45286,44848,45180,44640,6875,44869,28313,18185,19078,44855,17556,10402,44689,44765,19057)
Unknown column 'np.person' in 'where clause'