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 (5993,44855,44851,4765,13425,13988,19078,32454,17657,5388,45567,45518,17601,18650,6609,45561,28530,44687,18353,45262,18172,18688,17237,44671,44739,44775,44861,24441,44856,45229,31354,44835,16885,44863,39676,18652,8753,13922,44762,16935,14402,13,28313,44640,18279,18794,17904,44837,44849,30135,24411,6875,45517,45421,45043,45515,24438,45042,17848,17755,43800,44867,5410,45177,18996,45180,17114,36472,17527,45072)
Unknown column 'np.person' in 'where clause'