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 (18185,18719,44867,44869,17755,44835,22509,18430,17756,17009,18650,16885,24412,44856,44836,44689,18286,30963,18353,44861,17848,18446,17771,8753,5410,45043,44848,24438,28530,4765,14622,36472,17492,44685,44849,17335,17237,44671,45561,45515,13,44878,44768,17527,44875,18279,18981,45421,44845,19057,5993,44687,17556,44854,18172,10402,18572,17904,45518,44775,45567,6875,44865,18688,44669,17278,44851,18648,45262,4686)
Unknown column 'np.person' in 'where clause'