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 (17556,5388,44687,44851,44855,18652,45567,18427,36472,44766,44767,10402,18719,17756,17904,18279,44775,44867,18185,44745,17009,45346,18794,45072,14622,44861,45180,44674,17657,17835,18286,45515,18237,28530,3883,44764,44868,6609,32454,30963,18648,45042,45561,30135,3,44711,44884,44669,44849,37267,17848,13425,44875,18446,34194,44873,17981,44531,16935,44858,6875,18688,44865,44837,19057,13988,18042,18172,17771,17492)
Unknown column 'np.person' in 'where clause'