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 (18719,44867,18648,18301,44765,17351,44745,5388,18894,45516,28313,13,17114,24441,3,18427,24412,17492,44685,24438,44854,44870,37267,18185,45517,44865,28530,17835,44766,16885,44837,5410,44878,17556,22509,5993,36472,44674,45043,14622,44687,18650,45180,44894,44858,6782,17278,44845,18430,44875,17839,17601,18981,37057,44868,17756,44767,18279,44853,19057,16935,32454,39676,8753,18172,30963,18446,45561,45346,6875)
Unknown column 'np.person' in 'where clause'