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 (18427,44849,16885,32454,18688,18446,13988,44856,44875,45421,4765,8753,16935,45043,17771,3883,5388,18185,14622,17835,44685,18237,44894,5993,18572,45180,44854,5410,17092,44867,45346,6609,18042,45561,45262,44640,17492,3,6875,18794,30963,44868,44837,45177,44848,17703,24438,4686,45517,18301,6782,45515,17556,18279,37057,17114,44865,44531,18894,44687,44853,45518,45051,45072,17756,44878,24441,44671,13,39676)
Unknown column 'np.person' in 'where clause'