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 (17009,18900,44837,14402,44865,44764,13,18430,45180,17278,37267,44674,17848,5259,45561,44870,18996,45177,18185,17335,30135,18301,17771,44894,24441,45517,28313,44854,45072,17114,44669,44878,28530,44853,17835,17601,24412,13988,45262,45051,6782,4686,44775,6862,10402,17657,17839,44765,18172,37057,44531,18894,44875,44745,44849,44640,32454,44856,17351,24438,44855,17492,24411,18286,45043,18650,45567,17092,5993,5388)
Unknown column 'np.person' in 'where clause'