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 (45517,44531,17492,44689,18286,13988,45561,24441,45346,18652,22509,45516,18279,45518,18650,44845,17835,17981,17335,18301,17657,44875,44711,45567,18185,44765,13922,45180,44764,18572,44687,44861,17351,3,17756,17904,44853,24411,17839,30135,44745,44640,45262,44856,31354,44894,44766,44835,36472,44767,18172,9341,44867,45286,45277,45177,44739,44775,5259,32454,18427,30963,17703,44858,44837,19078,16935,45421,6875,44863)
Unknown column 'np.person' in 'where clause'