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 (17492,45051,17527,44894,6875,44745,44863,45180,44685,18719,44531,17009,44845,44687,13922,18279,45072,44640,14622,17278,24438,17839,44768,17351,31354,13425,17756,44866,18794,6782,3883,43800,3,10402,6609,17657,17771,9341,44858,18981,13988,30986,44689,24411,44869,44855,4765,44875,17848,34194,45042,44837,45518,17904,18185,44767,18572,17835,17981,18900,17114,44861,37057,18353,44884,28530,32454,45515,18688,30963)
Unknown column 'np.person' in 'where clause'