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 (13,45515,17351,18648,37057,17904,45518,45051,18652,24411,18279,45229,44640,17527,18650,44687,3,6782,18237,44531,44837,45042,37267,44848,18794,44875,44870,45567,44669,24412,5259,45277,44836,6609,13988,44835,6875,31354,18427,17601,45180,44865,44845,17839,14622,24441,45516,19057,44861,18286,18430,24438,19078,18894,30986,17278,36472,17756,14402,45517,44849,16935,10402,44866,17556,32454,17237,44739,44851,44863)
Unknown column 'np.person' in 'where clause'