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 (5993,3883,45043,18446,17492,6862,44837,44869,28313,18286,17092,45051,44739,17278,17335,44870,13,3,45516,19057,18237,18042,44689,44687,18894,45561,17756,44685,18279,44764,16935,44849,44853,17237,14622,45072,18794,28530,16885,18900,32454,13988,45180,45177,17114,44767,44854,44762,17527,45567,5259,6609,18427,30963,17835,45286,44766,4686,44875,5388,6875,44531,5410,44775,17657,45277,44845,37267,24411,44861)
Unknown column 'np.person' in 'where clause'