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 (30986,44765,45180,44848,45051,17981,44870,24441,44764,44745,44868,44739,30963,44836,17848,18430,17492,45515,19057,13425,44884,44768,44835,17657,45421,44863,44837,18981,44687,45229,18279,44875,17114,45517,44775,37267,44856,44640,3883,45072,18172,18648,44867,32454,6875,17755,44671,3,13922,44849,18042,18894,13,44878,39676,44531,17771,44674,44855,17556,17351,44767,5388,44873,18237,17904,45262,17527,17756,44866)
Unknown column 'np.person' in 'where clause'