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 (18650,18353,44849,28313,44863,44531,5993,45516,44878,17904,18042,39676,44875,13,37267,17848,18237,45561,30135,44861,44884,18688,45043,6875,44766,18446,44767,44669,18894,13425,18996,28530,37057,18279,45421,45072,45051,31354,3,18427,17839,18185,19078,18648,17009,17771,44687,19057,13988,45277,13922,5410,5259,44835,30963,44685,18794,18301,44851,18900,17756,8753,44855,43800,44866,45180,44689,16885,18719,44837)
Unknown column 'np.person' in 'where clause'