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 (17556,28530,44878,44674,18301,16935,17835,44835,17981,18900,44861,5410,24441,6782,45517,44873,44858,44836,44745,44875,6862,4686,45229,17601,44854,44685,18981,45518,5259,4765,44765,44764,32454,9341,45042,30963,44767,44768,45515,17492,17114,13922,43800,18353,17839,44865,10402,3,44711,44855,5993,24412,45346,44849,30986,6609,13425,39676,14622,44869,22509,5388,18996,44766,18650,18794,18688,44837,6875,24438)
Unknown column 'np.person' in 'where clause'