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 (44685,17114,3,17981,44854,17351,37057,17009,13,18572,18042,44762,19078,44745,16935,6862,17527,45072,18446,45262,44767,18353,36472,18648,18900,44868,13988,45517,17771,44775,44858,18996,18894,45042,30135,30986,44687,32454,28313,44884,5259,10402,17904,17278,18794,5993,18301,18430,44856,44867,17848,44855,44851,44674,17839,18650,45051,24438,44878,44848,44671,44640,45421,17556,28530,45515,19057,45567,45561,6609)
Unknown column 'np.person' in 'where clause'