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 (17114,17703,17848,13425,37057,18427,18650,44849,44854,43800,19057,18353,24412,30986,5259,44865,45042,19078,17335,44884,17009,45515,18794,44835,18996,44851,44845,44711,22509,44768,17771,13922,18446,44745,18719,24438,5993,18042,44866,14622,13,45072,44848,17756,17492,6609,39676,17981,44674,18981,18572,4765,3883,45561,3,31354,45177,24411,45516,6862,45180,44739,17278,17092,44764,45346,45277,30963,44689,9341)
Unknown column 'np.person' in 'where clause'