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 (17527,17835,45180,6875,44849,45561,44762,44766,16935,44685,45286,24438,39676,44711,18719,44866,18648,17009,44870,17839,24411,5410,13425,44894,10402,14622,17092,28530,44868,44854,17237,17114,13922,30986,17556,5388,44851,45277,17492,45262,44865,44878,45051,18237,18794,6782,18430,18042,17278,32454,17756,44835,18279,8753,30963,44848,17657,44861,18185,13,44853,17755,17771,17904,44687,18572,44836,22509,44739,18353)
Unknown column 'np.person' in 'where clause'