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 (45051,18688,44853,17009,18286,30986,8753,18894,44866,44855,45043,24412,17351,45561,37057,17981,18996,44687,36472,17092,18279,45515,45517,18650,18427,24438,44640,10402,44867,44848,6875,45177,18353,44745,45277,44854,4765,14402,44739,18237,14622,13988,44861,3883,30135,44775,18185,18172,44671,44669,13922,45072,17492,18900,17835,44884,43800,44878,44765,18446,44689,19057,32454,44875,18648,19078,44870,6862,17601,18794)
Unknown column 'np.person' in 'where clause'