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 (44689,44853,44767,45346,45516,44762,45277,44854,44775,17492,16885,18279,30986,45286,17755,44875,18652,18794,13988,19057,44768,6609,30963,18648,45567,44868,45229,44766,32454,16935,44849,28530,17657,44848,24438,6875,44745,44855,45072,44765,44837,18900,17756,44835,39676,31354,44739,44861,44671,45042,28313,44764,8753,3883,4765,18719,44858,45177,18894,6862,45517,18981,45043,17601,17771,19078,44851,44685,44640,3)
Unknown column 'np.person' in 'where clause'