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 (44764,45346,6782,44849,18301,6875,44856,17092,17657,45051,37057,17756,19057,43800,45286,44687,3,44745,44671,17848,36472,28530,44867,4765,8753,44868,45518,24438,22509,44875,18185,9341,18900,16885,18981,44685,18719,6609,24411,13,17771,44531,44835,18688,13425,5259,45042,39676,45517,45072,17351,34194,18572,17755,45229,44854,14622,10402,18430,44869,44689,44767,18650,44762,45561,44845,45515,18427,18042,44837)
Unknown column 'np.person' in 'where clause'