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 (18279,18301,31354,19057,17756,45515,8753,3,5259,30986,13922,6782,45346,44689,45042,17527,44854,18894,17771,17835,30963,44766,18719,18185,44858,6875,6862,5388,45516,44865,19078,44764,4765,44685,44851,44674,44711,17335,44875,13,17601,28530,44739,32454,16935,24412,44671,18900,44873,17492,18446,6609,18981,36472,45262,45180,17839,18650,17981,17351,18430,44762,18794,30135,45421,39676,45517,45286,44765,37057)
Unknown column 'np.person' in 'where clause'