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 (44868,43800,4686,44835,44851,18794,44836,28530,44685,17492,45180,44739,45516,44867,17237,44837,44671,44775,16885,44764,22509,18894,19057,17771,16935,18652,44875,18172,44849,44531,45346,44866,18650,6875,17755,28313,14402,5410,18688,18446,45517,18430,8753,44861,10402,44854,34194,18185,17848,44687,17601,44884,17657,44674,17114,45229,5388,3,17839,37057,44766,45072,30963,44855,44894,39676,44845,30135,24438,18237)
Unknown column 'np.person' in 'where clause'