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 (44745,44765,45286,14402,13922,44866,18042,18427,18353,28313,44762,44848,30963,45042,17351,3,18981,17335,31354,44766,44674,18279,5410,44775,44671,17601,16935,45561,28530,44854,37057,18650,44870,18894,44858,44875,17839,44863,43800,45517,32454,17755,45567,45518,17904,44878,9341,17848,6782,36472,18648,17771,5993,17278,44868,44640,5388,18430,17092,34194,16885,44873,45177,17703,6609,13,44767,14622,45229,44835)
Unknown column 'np.person' in 'where clause'