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,5388,45229,17237,44849,30135,44531,13425,44836,8753,36472,44875,45043,13922,39676,44870,44671,17278,45515,45286,44837,45072,44711,18981,44851,44768,44685,14622,17351,44869,44766,44775,18279,22509,17771,17981,17904,44767,44764,45516,18572,24441,44868,45561,17092,18185,45517,5993,6862,17657,44745,18648,17492,44739,18427,44835,14402,6609,17839,16885,44867,44873,24438,18237,18446,44765,17835,18353,44853,17556)
Unknown column 'np.person' in 'where clause'