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 (39676,28313,18301,44739,18353,45229,22509,18286,44848,32454,6862,5993,45515,4686,44867,44884,36472,17657,44849,17351,24411,17839,3883,18794,14402,18185,44674,45567,16885,17703,18430,30963,17771,45262,18648,44640,45043,30986,17527,44775,14622,18688,45421,44835,44861,30135,18719,45517,6875,18996,10402,44863,19057,43800,18279,34194,45516,18981,18042,44764,45072,44531,18900,17492,18427,9341,45177,44853,44873,44671)
Unknown column 'np.person' in 'where clause'