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 (5388,37057,13425,24412,17237,6862,45516,19057,44855,44865,44878,44861,44836,18981,44711,44868,18185,18650,17771,17278,31354,18042,5259,45229,44884,44671,17755,9341,17839,45567,18430,18648,44685,45072,37267,30986,18446,18427,44764,28313,45561,17527,44848,44687,44768,18652,44745,45286,4765,45517,44775,13922,8753,17848,30135,44739,18900,45180,44835,44531,44863,45177,44873,17009,17601,17351,3,45277,14622,44866)
Unknown column 'np.person' in 'where clause'