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 (18353,45051,44836,44858,18794,13,44674,24412,6609,18894,18301,17527,17556,44861,5259,44669,17835,44764,44685,17904,18279,44745,17756,45177,24438,30963,18688,44835,45561,44765,17335,44856,17657,28313,14622,24441,45286,44853,14402,45516,44531,37057,6862,18185,4686,44878,39676,17703,44868,6782,17981,44687,44867,45043,45515,31354,44865,45072,44775,28530,36472,18237,37267,30135,10402,43800,18430,17839,45517,19078)
Unknown column 'np.person' in 'where clause'