Title: Execute query in wordpress
Last modified: August 20, 2016

---

# Execute query in wordpress

 *  Resolved [Alin Marcu](https://wordpress.org/support/users/deconf/)
 * (@deconf)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/execute-query-in-wordpress/)
 * Hi,
 * I am unable to delete some rows from wp_options using $wpdb->query:
 * `$wpdb->query($wpdb->prepare("DELETE FORM $wpdb->options WHERE option_name LIKE%
   s",'_transient_%'));`
 * There is no error and I can’t figure out what the problem is …
 * Any help will be appreciated.

Viewing 1 replies (of 1 total)

 *  Thread Starter [Alin Marcu](https://wordpress.org/support/users/deconf/)
 * (@deconf)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/execute-query-in-wordpress/#post-3585236)
 * Ok now, i think i was too tired, i typed FORM instead of FROM.

Viewing 1 replies (of 1 total)

The topic ‘Execute query in wordpress’ is closed to new replies.

## Tags

 * [$wpdb->query](https://wordpress.org/support/topic-tag/wpdb-query/)

 * 1 reply
 * 1 participant
 * Last reply from: [Alin Marcu](https://wordpress.org/support/users/deconf/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/execute-query-in-wordpress/#post-3585236)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
