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 (44851,44745,44739,45072,22509,18650,44674,17114,45518,6875,14402,17278,44868,18894,44762,44858,24441,24411,45561,44837,18794,45286,18446,14622,45517,44531,17904,10402,5388,9341,43800,44765,44875,44894,45051,44669,44835,44870,45515,44863,44766,17009,13988,45516,32454,44764,44711,44687,18719,44884,16885,18172,36472,44869,17556,44671,17657,44848,6782,17703,39676,37267,44867,17237,17771,30135,44685,44836,18185,44768)
Unknown column 'np.person' in 'where clause'