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 (17237,44671,44775,37267,17492,19078,44845,13425,45262,17771,45072,18430,17335,45517,6875,18894,17351,18794,17981,45051,18648,44764,18996,3883,17848,17756,5259,9341,4686,44854,16935,14402,44689,44868,44875,44837,45561,17835,5410,44685,18286,30963,14622,24411,18427,44669,18301,18650,17703,44768,34194,18042,18237,30135,44739,45516,45043,13922,44711,45180,17114,5388,44531,28313,44856,13,18172,44870,6609,31354)
Unknown column 'np.person' in 'where clause'