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 (30986,24412,13922,44764,45517,45177,18648,3,18237,18042,17527,8753,18652,18981,44775,28313,18353,17703,13988,16885,18286,30135,44854,45180,44865,17771,6875,45518,44531,44875,45516,18572,44689,18719,17756,19057,17009,44858,44674,17335,18301,17839,44765,45051,18427,17351,44767,37267,44849,44861,31354,18894,24438,44853,24441,13425,44766,30963,5388,44768,44669,44873,44863,13,44671,45567,18430,44687,6782,22509)
Unknown column 'np.person' in 'where clause'