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 (18353,45286,17657,44768,24412,44762,22509,44873,45072,44764,17771,44745,43800,17756,5388,44531,18301,18286,30986,17755,4765,44765,5410,5259,13425,45262,18652,44866,17092,44863,14402,44836,44674,17114,18650,44870,19057,44875,24411,3,44854,18237,44848,44867,17835,44687,44845,45518,30963,6862,18446,9341,44739,45051,28530,16885,44671,17278,44878,18894,44861,44767,24438,5993,13922,32454,17351,45177,17009,44835)
Unknown column 'np.person' in 'where clause'