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 (44861,18688,44849,44711,44762,45567,18446,10402,6782,5388,18042,37267,44856,17237,17848,17556,39676,18648,44689,17755,24412,17771,44868,44765,44855,31354,13425,17657,30963,17351,17092,44858,44674,45277,44669,17703,28530,44835,17009,14622,44875,17904,45177,44836,5993,18427,44687,45043,17527,8753,44884,6862,44878,45262,18286,18172,44837,17114,44775,43800,45517,44845,37057,18894,18719,22509,44766,44745,17981,5410)
Unknown column 'np.person' in 'where clause'