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 (44669,44854,24441,24412,44845,45277,16935,17703,17527,18719,45051,22509,44767,44674,17556,43800,45286,45517,32454,45515,37267,28530,45516,44851,17657,18279,44689,17237,17492,18301,24438,44685,18652,45043,18794,28313,13,44687,44711,18042,13988,44531,17771,4765,44870,5410,45421,6862,45177,19057,44765,44762,44873,45518,44875,17755,18996,44739,18572,44855,44640,5388,17904,44745,4686,19078,18430,45072,9341,44848)
Unknown column 'np.person' in 'where clause'