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 (24411,44845,44878,18427,30135,45286,44835,45177,44863,18981,17335,44868,45277,45262,17835,44775,17092,17771,32454,17839,44869,6609,18900,14402,17009,24438,5993,18279,44765,45229,18652,31354,45043,17981,17556,17492,17114,44861,44855,43800,18172,17657,9341,3,44894,45517,44640,44739,37267,18042,45518,16935,3883,44854,19057,5388,44867,44764,30986,44875,30963,45515,16885,44851,13922,44858,18650,45516,17601,18996)
Unknown column 'np.person' in 'where clause'