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 (17981,43800,44858,18652,18430,44865,18688,44685,17009,44711,18446,17848,44766,17771,45072,30963,17756,45277,14622,6875,45518,44674,18650,44836,44894,45180,16935,45517,18237,17839,19057,44854,44775,18279,18353,17703,5993,45421,17492,30986,44851,45567,17351,4686,18185,18900,13922,13988,44671,44739,37057,44869,44866,44835,4765,44878,17237,36472,17556,44863,16885,44867,45515,5410,18719,5259,44640,28313,45051,24412)
Unknown column 'np.person' in 'where clause'