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 (17278,45567,44764,17351,44867,44873,36472,6875,13425,44685,44837,45043,44866,18042,44689,5410,44849,18794,45346,16885,19078,30986,17756,6862,13922,17601,44858,44768,45517,24411,4765,18981,44836,44739,18301,13988,17092,24412,17657,44856,44762,39676,45518,44765,18172,44861,44671,44674,44766,45229,18572,45561,18719,14622,8753,18430,17492,17009,44851,18446,44669,17839,4686,18353,44531,34194,6782,44687,28530,44775)
Unknown column 'np.person' in 'where clause'