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 (45518,44861,18996,45262,44878,45277,14402,37267,44853,44775,5259,4765,18446,6862,44685,45286,13425,18172,24412,44669,18652,5410,17756,45517,17492,14622,13988,13,44868,17278,13922,18237,17009,17335,18301,44689,18648,17114,44745,8753,18719,44835,45567,44836,19078,44687,10402,44873,44766,3883,30986,45180,18430,44869,44845,17835,31354,44674,44671,44640,45043,44875,18353,32454,5388,44865,5993,17981,18279,18794)
Unknown column 'np.person' in 'where clause'