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 (17981,44867,44767,17839,44689,17492,44835,17848,18301,24412,44762,44745,45346,18042,18286,22509,6609,18900,44869,45516,18279,18688,17527,3883,44894,17904,13425,18650,45517,14622,16935,18652,5410,17009,45072,44837,18794,18237,44858,6875,13922,44768,17703,45421,44711,19057,43800,30135,44687,17335,6782,6862,45561,45515,4686,44775,18185,17835,45042,19078,17556,30963,18719,45286,10402,45567,4765,44853,17351,32454)
Unknown column 'np.person' in 'where clause'