Title: Problem with Query
Last modified: August 19, 2016

---

# Problem with Query

 *  [ThorHammer](https://wordpress.org/support/users/thorhammer/)
 * (@thorhammer)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/problem-with-query/)
 * Hi, I am trying to query posts according to values given from GD Star rating 
   plugin. I will use posts from some categories. Anyone capable of seeing what’s
   wrong with this query string?:
    `<?php query_posts("gdsr_sort=review&sort_order
   =asc&gdsr_multi=3"&showposts='5'&cat=3,5,6,9,31); ?>`

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/problem-with-query/#post-1427955)
 * i suppose the order of the quotes (single or double) needs to be sorted:
    i would
   try it this way:
 * `<?php query_posts('gdsr_sort=review&sort_order=asc&gdsr_multi=3&showposts=5&
   cat=3,5,6,9,31'); ?>`
 *  Thread Starter [ThorHammer](https://wordpress.org/support/users/thorhammer/)
 * (@thorhammer)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/problem-with-query/#post-1428065)
 * Thank you, alchymyth! I tried with your suggestion, but still got a blank page.
   I think I have to re-consider the query from GD Star Rating.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with Query’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [ThorHammer](https://wordpress.org/support/users/thorhammer/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/problem-with-query/#post-1428065)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
