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 (44873,44739,18237,44640,17601,44869,44878,45515,18652,45277,44853,45072,6875,44685,44762,44849,8753,44768,18900,44669,28530,16935,44531,3,45421,18894,6862,18042,44765,45043,17092,44767,13922,44851,18185,44866,44687,44836,6782,13,6609,45262,44858,44835,5259,17492,17848,18981,43800,17756,44766,18427,44711,44855,19078,18279,44837,17657,17237,44868,17904,17278,18446,45346,4686,31354,44845,44894,18430,24441)
Unknown column 'np.person' in 'where clause'