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 (17492,17839,44669,36472,4686,44640,45229,44875,37267,16885,44767,44765,14402,13425,44855,44766,44745,6875,45421,18981,39676,45051,18650,17092,17755,24411,31354,44835,44865,45515,44848,17771,17756,18648,18279,44711,30986,18301,18996,44689,17114,44851,44878,18652,43800,18042,45516,18719,5388,44768,44853,24412,6609,18427,4765,44762,18572,17335,44867,22509,44836,44531,19078,8753,44861,19057,44764,3,14622,45517)
Unknown column 'np.person' in 'where clause'