$orderby = 'title';
$order = 'ASC';
$stmt = $conn->prepare('SELECT f.id, title, description, release_year, first_name, last_name FROM film AS f, film_actor AS fa JOIN actor AS a WHERE fa.actor_id = a.actor_id AND fa.film_id = f.film_id ORDER BY :orderby :order LIMIT :limit');
$stmt->execute(
    array(  'order'=>$order, 
            'orderby'=>$orderby, 
            'limit'=>$limit
        )
    );
I'm getting the error described in the title when trying to run this query. I've tried to find a way to debug the output but failed. I'll appreciate the help. PS: I'm learning SQL using PDO in PHP.
Thanks in advance.
 
    