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 (44848,18894,44875,18996,17114,22509,18185,44870,45051,24412,24438,44687,44856,17527,18446,44531,9341,45277,18301,17904,44835,17657,18042,17601,44867,44873,18279,44766,18353,37057,44640,17237,17703,44868,44878,28530,44775,17771,18572,44863,6875,44685,45229,3883,18172,18652,32454,17278,44865,44849,18427,18719,45517,19057,24411,18688,18430,13425,44674,45286,43800,44837,45072,44858,16885,45518,6782,18650,18286,14622)
Unknown column 'np.person' in 'where clause'