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 (44837,13988,44848,18237,30963,18719,45561,17839,44669,19078,28313,44869,17904,44855,17771,44861,18185,18427,24412,6875,43800,44674,17556,6782,44764,17835,44894,45043,44671,18894,6862,3883,44875,44853,45517,45042,44775,45177,17092,4765,44745,18794,18286,16935,18688,17848,45286,45518,5410,24441,44868,44835,36472,44863,45051,32454,30986,17755,44849,18446,39676,24438,18279,18652,44739,44767,44851,14402,13922,18900)
Unknown column 'np.person' in 'where clause'