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 (45051,32454,44854,18237,44745,17756,44845,18650,44767,17009,18652,45072,14622,43800,18042,44856,44768,18900,45286,45567,44868,24412,44869,44855,44870,30963,44764,18688,28313,19057,18894,17237,37057,45180,39676,18353,44849,9341,45515,45262,44687,44836,45518,44884,14402,18430,30135,44685,44531,44865,37267,4765,24411,44835,17904,17755,44766,24441,5259,45561,44669,44837,17492,17835,17527,3,5388,45516,6782,18427)
Unknown column 'np.person' in 'where clause'