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 (45177,18279,44873,18427,44685,44689,18719,30986,18353,44669,44687,45517,18894,31354,17527,32454,45042,17092,17351,24412,17601,6782,13988,44674,45072,5388,44768,14622,45051,44878,45567,44856,44867,18648,17278,17657,44836,44849,17237,28530,44851,5410,3,44745,9341,16935,45180,44855,45277,17335,18688,18301,18794,6862,45229,44894,44739,10402,18430,17009,19078,17703,17556,18237,45515,44865,45561,44868,8753,37267)
Unknown column 'np.person' in 'where clause'