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 (44875,44868,24411,44854,44685,44765,14402,45177,17904,18894,18185,18650,18648,45517,18430,45561,17492,4686,17527,44861,22509,5993,45286,44866,16935,37057,17114,44865,44849,45042,18688,18301,17755,13922,18900,18719,44640,44762,19078,3883,30135,17848,17351,4765,31354,44835,8753,18042,44863,19057,24438,44851,45051,45515,44766,13425,39676,17556,17278,44869,44853,45516,45180,18286,44870,44878,44768,44674,44884,45072)
Unknown column 'np.person' in 'where clause'