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 (28313,44873,18172,17839,30135,18996,5388,6782,17527,44835,44855,18900,17556,44711,17904,14622,18652,18042,17492,5410,44671,31354,44853,28530,44767,13922,17981,17848,45180,10402,17114,17756,22509,32454,17835,37267,9341,17092,18353,5259,13425,44836,44894,44861,44837,44745,44674,19057,44849,18719,13,45286,44762,18894,44848,44765,44858,37057,17755,44869,45346,44685,17009,44868,18981,24411,45518,44775,45567,45042)
Unknown column 'np.person' in 'where clause'