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 (14622,44766,37267,6609,30135,44531,44869,10402,18286,17492,17237,17527,36472,17771,3883,17335,44762,13922,44836,45042,28530,44878,44768,44711,44865,44849,44669,44745,45516,44854,16885,22509,45180,44685,44848,17278,18353,44884,30986,24438,44674,31354,45072,24412,17848,18648,45177,13988,17657,39676,44875,6862,13,37057,8753,44764,17756,44867,45517,17703,44640,9341,44855,44767,18719,45277,24411,44845,18652,17114)
Unknown column 'np.person' in 'where clause'