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 (45177,18894,18353,45516,44531,17278,17351,44858,24412,30963,17556,43800,17092,45518,45229,45072,18427,44884,45567,18572,16885,17114,17335,24411,45561,18900,30986,24441,44875,37057,18430,44837,18652,44853,18981,31354,17009,32454,18648,44640,10402,5259,18650,28530,34194,17527,22509,17703,17492,24438,17237,5388,17981,44865,17835,44863,6875,30135,18042,18279,14402,17756,4765,44775,44689,44868,36472,5410,4686,3883)
Unknown column 'np.person' in 'where clause'