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 (13988,45286,44739,17009,17904,44531,44671,45043,18286,44873,44766,18185,17756,6609,14402,17848,44835,18648,45051,45515,44867,17237,17278,44669,37057,45229,18237,44865,44836,44775,16935,18794,8753,3,24411,44854,17335,9341,18279,44849,45180,44851,13,44768,43800,45277,24441,6862,24412,44845,18572,45177,10402,45262,18446,18900,18042,44687,44866,44858,18430,45072,44685,17835,44640,44870,5993,17981,19057,44765)
Unknown column 'np.person' in 'where clause'