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 (31354,17351,6609,44870,18286,44845,19057,44687,18650,18719,45043,44875,24412,44884,8753,30986,17848,45262,45177,44765,17756,44837,18042,18572,17839,3,45346,44739,45229,30963,13988,17114,39676,22509,4765,5410,18446,37057,44835,17771,45180,44873,32454,18981,44867,18894,44711,44854,28313,18237,17335,18652,18648,18900,6862,44856,14622,19078,18172,44531,44855,45517,17657,45515,5993,45518,45561,44689,9341,44863)
Unknown column 'np.person' in 'where clause'