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 (44766,45051,17756,45518,45515,18900,43800,6782,18237,24412,45516,5993,39676,45180,6875,24411,3,44865,44870,19057,30986,17848,45346,44531,44849,16885,5388,13922,44853,17981,44848,13,45177,37267,18981,18279,44767,17556,17009,44875,18427,44863,17092,44687,45043,44764,28530,44671,44884,17771,17351,44869,17657,45042,13425,6609,13988,30963,18172,44867,44873,44835,19078,44739,14402,18794,16935,17755,18650,17278)
Unknown column 'np.person' in 'where clause'