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 (18427,17492,43800,3883,44689,44849,44845,28313,30986,44775,19057,44687,13922,45072,45051,18185,44711,32454,24441,45042,19078,45515,18430,17527,45177,45346,18172,28530,17981,44869,18572,13,17848,44875,39676,17835,45262,44866,45286,44685,37267,17657,17839,31354,6782,17009,44837,18894,6875,30963,24438,44851,44640,44745,18237,45517,44848,24412,44671,44870,37057,17904,44854,9341,18652,18279,5410,44531,44884,44835)
Unknown column 'np.person' in 'where clause'