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 (22509,18042,45180,44640,43800,18719,34194,44869,18279,5388,45517,17756,44867,45421,44685,28530,31354,44835,30986,44855,17771,44854,44865,44837,44768,14622,17755,44669,44875,17278,10402,44739,16885,17237,3883,45515,45567,44711,45229,44836,28313,44765,17839,44671,18794,24438,44894,18650,45516,13425,30963,18427,18237,13922,44531,17492,37267,13988,45286,5993,18185,45262,4765,44884,44848,44858,17981,44863,45051,17835)
Unknown column 'np.person' in 'where clause'