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 (18688,4765,44854,18650,17904,9341,18286,3883,17756,44870,13988,44849,45262,17848,36472,17492,18996,17114,24411,45516,44863,45346,17657,17771,6862,45517,5993,44685,17835,45072,44764,44866,5259,14402,44853,30963,45561,45277,44884,17703,44767,44674,17981,18900,17009,17556,3,45177,43800,44739,44869,17839,37267,17527,44856,13922,44873,13425,44766,18172,44745,30986,45042,17351,16885,24412,45518,18279,44855,44837)
Unknown column 'np.person' in 'where clause'