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 (13,45567,44854,45515,44868,44861,44845,44869,44687,18286,45051,24441,17527,45262,17835,44848,44835,44849,18648,17092,17492,44884,17904,9341,17981,44531,13922,5259,18301,17703,14402,32454,18430,30963,45421,44739,24411,18650,17278,45180,37057,18900,17556,3,4686,44711,8753,45517,44863,19057,44767,44674,44765,17009,22509,44867,44745,44855,30135,6862,43800,18042,44764,18172,18279,5993,18237,18185,45518,18353)
Unknown column 'np.person' in 'where clause'