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 (18301,44640,18688,44856,18894,18237,44836,44739,18427,44745,8753,3,18996,45262,45277,17335,44894,18900,5410,17756,45180,44711,45518,18446,18353,17839,18981,44853,17657,44845,16885,18185,17601,17114,13922,45286,31354,45072,17237,19057,9341,36472,13425,44848,5993,45516,44764,45517,28530,6862,14402,4686,45229,44863,43800,45346,44766,45177,44669,30986,24412,44866,45561,3883,18042,44884,17492,17278,18172,18650)
Unknown column 'np.person' in 'where clause'