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 (45518,44689,45515,18648,44674,19057,44765,44855,44854,17839,17981,18446,18301,13,44875,22509,10402,45277,16885,17756,9341,13988,14402,44836,24411,44711,28530,44739,17835,17657,44775,34194,37057,17092,17009,45180,4686,17703,17527,17335,44894,4765,13922,30963,18650,45043,18237,44878,44861,5993,24441,30986,19078,28313,44685,44848,44835,39676,17351,18688,44869,44853,44884,18430,30135,45346,44768,17556,44865,3)
Unknown column 'np.person' in 'where clause'