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 (5993,44775,4686,44837,28530,17756,44835,45042,13,44766,17278,18185,44687,3,44764,17114,18572,44739,44669,45229,17703,18427,44875,45518,44861,3883,44768,44870,18446,6862,18172,28313,44869,17601,44845,19078,5259,45421,17981,17492,9341,5388,17657,44640,18279,44767,36472,18996,13922,14402,30135,44878,44848,45051,18719,17237,18286,44858,44863,18688,44711,45262,44854,5410,17904,4765,45517,17527,13988,45043)
Unknown column 'np.person' in 'where clause'