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 (6862,32454,45051,44867,44854,13922,45180,17771,5993,18650,18894,18430,44875,18353,44640,24438,18446,14622,4765,44669,44884,44855,44861,17657,44845,44836,18572,17237,17009,44856,45042,39676,17556,44762,37267,44687,36472,45518,18237,43800,18427,30986,44689,8753,45262,44870,17848,18719,45286,9341,6875,17601,18688,44531,18301,18286,5410,45072,44739,18900,17756,44878,28313,18648,17981,44866,18996,3,45517,14402)
Unknown column 'np.person' in 'where clause'