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 (44687,45567,44836,19057,24441,44765,16935,44865,17556,4765,44762,45177,17657,45516,18652,6862,17114,44685,45517,17904,17771,5410,18900,18427,45346,44739,30135,18996,45277,14402,44869,6609,17703,44858,44837,44766,17237,45042,45072,44861,37057,36472,5993,30986,13922,44689,17848,28313,13,30963,17335,32454,17835,17755,18719,44875,13425,44640,18648,44669,45229,31354,13988,45286,44674,44845,17092,17756,43800,3883)
Unknown column 'np.person' in 'where clause'