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 (44856,44764,14622,18794,44866,18981,24412,13,17848,44853,13922,32454,44854,44767,44873,19057,18353,17092,31354,36472,24441,45051,44868,18427,44855,17492,8753,18894,30963,44845,44863,18172,44674,44685,44671,3,44878,44531,44745,44739,17335,17556,45421,17527,6609,45180,18237,17009,44768,43800,17756,45567,45517,45229,6782,16885,5993,18900,44865,17657,18301,44851,17981,44869,44870,5410,44766,45516,44867,18648)
Unknown column 'np.person' in 'where clause'