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 (24412,45561,45517,17657,18279,44875,13988,18042,13922,44869,24438,18185,30135,45229,44845,30963,44848,18237,44835,24411,6609,14402,17351,18430,45051,17756,16935,18650,44775,18446,44870,44861,45421,17601,18652,44531,18172,14622,36472,45518,13425,44689,45262,16885,18427,44767,44766,17237,9341,43800,18286,44669,6782,45346,45567,44849,45516,44685,32454,44739,17703,44858,18719,44765,45277,45072,44687,44854,6875,44863)
Unknown column 'np.person' in 'where clause'