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 (18286,44848,18719,17755,5259,18301,18794,44837,44669,44878,37057,17335,30986,16935,17756,44640,43800,4686,3883,6609,44739,17556,4765,14622,44775,5410,44685,24411,18894,45346,17771,30963,45516,18981,45229,44869,45567,44531,28530,6875,44853,17492,18430,13425,44689,44868,44766,19078,24441,45043,45277,44765,45517,39676,45180,14402,19057,44674,18648,44836,18427,17351,44762,45561,44884,34194,24412,37267,45042,44855)
Unknown column 'np.person' in 'where clause'