I am using this as my query:

```
$fields = DB::select('select * from ? where form_master_id=?',
[$field->table_name,$field->form_master_id]);

```

This gives me the error:

> 
> SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? where form\_master\_id=?' at line 1 (SQL: 
>  select \* from articles where form\_master\_id=101)
> 
> 
> 

but when I check the query: `select * from articles where form_master_id=101`, it works perfectly for me in phpmyadmin.