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 (18688,18279,17657,37267,17839,18648,18185,8753,9341,5410,18981,44863,17904,44739,13,30986,44849,44878,5993,44745,44851,3,17848,18650,44858,44884,44865,17492,44685,44775,22509,44764,37057,19057,44531,45277,44868,5388,39676,6875,45561,14622,14402,44854,18286,13425,44837,45229,6782,18794,44711,17703,6609,44853,45516,17114,45421,44861,44766,44768,44835,45518,19078,17755,13988,16935,17527,45177,44836,44762)
Unknown column 'np.person' in 'where clause'