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 (37057,18719,44875,44640,44669,18900,17835,17703,24411,17237,45518,5993,18650,4765,44845,18237,45072,16885,18894,44867,17839,18427,18172,45561,44865,44848,13988,18353,24412,45229,45277,44854,18996,44849,32454,19057,44858,14402,44837,17601,45517,3,31354,45346,17657,4686,45262,9341,18279,44762,45567,24438,6875,45516,44873,45515,5388,18286,30963,17114,17981,44851,44775,44861,17904,45286,44745,6862,44768,17335)
Unknown column 'np.person' in 'where clause'