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 (19078,17848,45072,44775,16935,17556,44768,18648,45229,45515,4765,14622,44858,6875,44868,17009,17351,17703,19057,18286,18900,44854,5388,17835,39676,18042,44867,24438,18446,45567,44863,8753,6782,14402,3883,44531,44861,43800,6862,45518,45043,45177,24441,28530,17278,18650,16885,18237,44687,45516,44836,44685,17755,44865,18430,17527,17237,44848,17771,24411,18279,44837,44835,17981,44849,44845,17335,18894,24412,18172)
Unknown column 'np.person' in 'where clause'