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 (31354,17601,18286,18237,44762,9341,44875,6609,44739,17703,16935,43800,24438,17981,18794,45229,44669,44858,44765,24412,45567,17755,44671,45518,13988,45042,18650,5388,17657,44685,39676,18430,45072,5410,5259,44853,44764,6875,18688,8753,44865,17904,18652,44531,3883,44867,6862,44848,44689,44873,45516,18353,45515,18648,44863,44855,44640,17771,45517,17335,44884,18042,17839,44775,37267,45180,32454,44851,18996,17492)
Unknown column 'np.person' in 'where clause'