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 (17981,18301,44849,17657,18794,30986,44837,17771,14622,44775,17556,18279,17492,44836,4686,24438,44531,18572,17527,44878,30135,17351,17009,18650,30963,45517,44848,18652,45072,17237,5410,45518,44669,44845,4765,6782,45262,44884,10402,18427,19057,18996,24412,13922,44865,18353,18894,44739,16885,18237,17703,6609,17904,24411,13425,44762,44687,45567,44671,18172,18981,24441,44869,37267,17756,34194,44711,6862,44894,44689)
Unknown column 'np.person' in 'where clause'