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 (18301,13,8753,17835,44674,44671,17527,31354,44865,17237,45180,13922,18430,22509,18900,5388,45515,44867,10402,36472,45072,39676,44689,18794,18286,18648,18172,14402,17009,17755,44669,44685,45517,44640,44768,17601,44762,45043,44870,13425,44837,24412,4765,44875,19078,44711,6862,44845,32454,18279,44745,17657,43800,24411,17114,19057,45346,17278,17756,17703,17556,5410,44739,45561,44775,44878,17092,45516,6782,37267)
Unknown column 'np.person' in 'where clause'