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 (44849,18172,44836,18427,18719,44873,17839,43800,30986,5259,17904,18981,3883,45072,45517,17527,44861,44762,44764,18900,45229,44837,9341,19078,31354,17278,17755,18237,17981,44689,45286,6875,28313,45277,13922,17835,22509,45043,44878,39676,18430,45177,17601,44766,17092,6609,44884,44775,44858,18996,44765,34194,44745,17657,18042,17756,14402,45515,14622,18301,44711,44854,44671,19057,44863,44851,44855,18650,28530,44845)
Unknown column 'np.person' in 'where clause'