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 (24441,17981,13,18652,44894,17351,18688,44531,17703,18301,44848,44866,18430,17771,44868,18900,8753,37057,18981,44849,18042,44745,45516,44837,9341,45262,5388,44674,44766,5259,37267,14622,3,17556,45346,32454,44835,45517,18279,19078,16935,34194,44873,44775,30986,6875,44858,24412,18353,45180,14402,24411,5993,43800,6782,45515,44855,17114,17278,44685,13922,45567,17237,44845,30963,18427,17848,44669,18237,44869)
Unknown column 'np.person' in 'where clause'