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 (5993,17556,45051,44689,44671,37267,45043,44867,44837,14402,44856,44768,18353,30986,44848,6609,18900,8753,44873,5388,44739,32454,18301,18279,28313,14622,45262,44878,45567,3,17114,24412,13425,45286,45515,24411,44775,17527,45517,13,17351,5259,18719,45516,18652,17839,17278,3883,44531,17771,44674,22509,17756,44849,44863,44685,44669,45042,17657,45277,16885,17237,17848,4686,17092,28530,18042,18648,45346,6782)
Unknown column 'np.person' in 'where clause'