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 (17835,18652,4686,19078,44767,18185,17556,44745,44861,45518,18900,18688,16885,18237,5410,3883,36472,45072,17009,18981,17839,8753,44856,18894,6862,5388,44875,45561,37057,14402,17848,19057,44849,44775,44685,17114,45043,44764,44689,4765,45177,45517,45042,44865,17492,44863,13988,6609,14622,45051,3,18719,44878,44669,18650,45262,44531,17527,18427,24441,44894,45180,17601,5993,17771,18286,44848,18172,44835,44851)
Unknown column 'np.person' in 'where clause'