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 (17703,17278,13922,18572,44845,28313,6862,3,18650,30986,18652,24412,44689,18237,44861,45043,45518,44766,31354,18279,9341,14622,6609,17981,44685,24411,44837,17237,22509,44868,17835,17756,24438,44848,18794,44762,44669,17527,17904,44854,44674,44870,18427,18286,19078,44531,44849,19057,16935,5259,45180,44863,14402,5388,44835,45517,17839,44836,18353,45262,18185,5993,45421,16885,18042,30963,13,17755,13425,44671)
Unknown column 'np.person' in 'where clause'