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 (44669,44745,44531,3883,18237,24438,44687,5410,17556,45042,44861,18185,17278,9341,44775,45517,45346,44689,24441,36472,8753,39676,18446,17114,18719,44837,17755,18688,44875,44867,44762,45286,18652,44848,18572,14622,13,44845,17237,44863,44868,24412,18900,5388,45567,17771,44849,18353,18650,44870,44853,45561,44767,17092,44711,44858,18794,45051,17835,45515,19057,44884,17756,13988,18172,45518,18286,28530,6862,17904)
Unknown column 'np.person' in 'where clause'