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 (44671,45051,18279,44745,45518,5410,44768,45516,44884,18572,17092,44775,44689,18301,44835,24441,17114,4686,30963,17009,18900,18286,44531,44875,17839,45180,17527,44873,45042,5993,30986,45515,18427,45561,6609,18042,44866,17904,16935,39676,18794,17703,22509,18185,17278,28530,44739,13,45346,37057,32454,6875,44849,31354,18719,5388,18430,44894,44836,18237,9341,5259,24412,45262,44854,24411,18650,17848,17835,45567)
Unknown column 'np.person' in 'where clause'