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 (17527,44764,37057,14402,44745,44873,17278,3,18353,44835,19078,13922,6609,44767,44765,18042,44739,3883,45515,17848,34194,5259,43800,18572,44689,18172,18688,44687,13425,44865,18185,6862,17114,45421,30963,18648,44861,24412,44849,18894,6875,17703,14622,24441,5993,5388,44854,44884,44775,17237,24411,30986,18996,18652,44762,5410,37267,44685,6782,17756,44671,45517,45177,45346,44869,17092,44845,44867,32454,45072)
Unknown column 'np.person' in 'where clause'